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

Unified Diff: ui/base/ime/remote_input_method_win.cc

Issue 1507413003: clang/win: Let some chromium_code targets build with -Wextra. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: content_browsertests Created 5 years 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 | « sandbox/win/src/win_utils_unittest.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/remote_input_method_win.cc
diff --git a/ui/base/ime/remote_input_method_win.cc b/ui/base/ime/remote_input_method_win.cc
index e9f7fc24e124f54367ff1d3ca2e16aa33d6fdad6..2fbb8ac7cfee600abccf782cc61034d55bfef8fa 100644
--- a/ui/base/ime/remote_input_method_win.cc
+++ b/ui/base/ime/remote_input_method_win.cc
@@ -60,7 +60,7 @@ std::string GetLocaleString(LCID Locale_id, LCTYPE locale_type) {
//|chars_written| includes NUL terminator.
const int chars_written =
GetLocaleInfo(Locale_id, locale_type, buffer, arraysize(buffer));
- if (chars_written <= 1 || arraysize(buffer) < chars_written)
+ if (chars_written <= 1 || static_cast<int>(arraysize(buffer)) < chars_written)
return std::string();
std::string result;
base::WideToUTF8(buffer, chars_written - 1, &result);
« no previous file with comments | « sandbox/win/src/win_utils_unittest.cc ('k') | ui/native_theme/native_theme_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698