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

Unified Diff: base/i18n/break_iterator.cc

Issue 368133002: Fixes for re-enabling more MSVC level 4 warnings: base/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Attempt to fix non-MSVC build Created 6 years, 6 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
Index: base/i18n/break_iterator.cc
diff --git a/base/i18n/break_iterator.cc b/base/i18n/break_iterator.cc
index fe26a03a0b89fa85ba7501d4aaf9dd59464369f3..8788eb7f1ba757d4614d4a3ee3e47d2d7875be30 100644
--- a/base/i18n/break_iterator.cc
+++ b/base/i18n/break_iterator.cc
@@ -12,7 +12,7 @@
namespace base {
namespace i18n {
-const size_t npos = -1;
+const size_t npos = static_cast<size_t>(-1);
BreakIterator::BreakIterator(const string16& str, BreakType break_type)
: iter_(NULL),

Powered by Google App Engine
This is Rietveld 408576698