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

Unified Diff: chrome/common/spellcheck_marker.h

Issue 377683002: Fixes for re-enabling more MSVC level 4 warnings: chrome/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: chrome/common/spellcheck_marker.h
diff --git a/chrome/common/spellcheck_marker.h b/chrome/common/spellcheck_marker.h
index 3b04cadb298fe974f51ccb68da103cbd930114a5..bc02918460cbfef43ef764f0f97dbbf56a965940 100644
--- a/chrome/common/spellcheck_marker.h
+++ b/chrome/common/spellcheck_marker.h
@@ -20,7 +20,7 @@ class SpellCheckMarker {
};
// IPC requires a default constructor.
- SpellCheckMarker() : hash(-1), offset(-1) {}
+ SpellCheckMarker() : hash(0xFFFFFFFF), offset(static_cast<size_t>(-1)) {}
SpellCheckMarker(uint32 hash, size_t offset) : hash(hash), offset(offset) {}

Powered by Google App Engine
This is Rietveld 408576698