Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1187)

Unified Diff: ppapi/examples/ime/ime.cc

Issue 915403003: Enable size_t to int truncation warnings in PPAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ppapi_unittests win x64 Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/examples/gamepad/gamepad.cc ('k') | ppapi/examples/printing/printing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/examples/ime/ime.cc
diff --git a/ppapi/examples/ime/ime.cc b/ppapi/examples/ime/ime.cc
index 26c2f4225a9bad2e8c5d73dcf1264fc9c7c8a55d..805d14052f541115731015b214395f1210161878 100644
--- a/ppapi/examples/ime/ime.cc
+++ b/ppapi/examples/ime/ime.cc
@@ -112,7 +112,8 @@ class TextFieldStatusNotifyingHandler : public TextFieldStatusHandler {
textinput_control_.SetTextInputType(PP_TEXTINPUT_TYPE_NONE);
}
virtual void UpdateSelection(const std::string& text) {
- textinput_control_.UpdateSurroundingText(text, 0, text.size());
+ textinput_control_.UpdateSurroundingText(
+ text, 0, static_cast<uint32_t>(text.size()));
}
private:
« no previous file with comments | « ppapi/examples/gamepad/gamepad.cc ('k') | ppapi/examples/printing/printing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698