diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 00:34:50 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-16 00:34:50 +0000 |
commit | 9fc5ea7f00b59473330eb52550059da2dcf78b61 (patch) | |
tree | a0146f205add9f30beb391a5aa5e4c3bdb12c9b5 /chrome/common/spellcheck_marker.h | |
parent | 6a5b0718e89a93ef5786bed8333d5a5056ad5478 (diff) | |
download | chromium_src-9fc5ea7f00b59473330eb52550059da2dcf78b61.zip chromium_src-9fc5ea7f00b59473330eb52550059da2dcf78b61.tar.gz chromium_src-9fc5ea7f00b59473330eb52550059da2dcf78b61.tar.bz2 |
Fixes for re-enabling more MSVC level 4 warnings: chrome/ edition
This contains fixes for the following sorts of issues:
* Signedness mismatch
* Assignment inside conditional
* Constant value was truncated
* Possibly-uninitialized local variable
BUG=81439
TEST=none
Review URL: https://codereview.chromium.org/377683002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283305 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/spellcheck_marker.h')
-rw-r--r-- | chrome/common/spellcheck_marker.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/spellcheck_marker.h b/chrome/common/spellcheck_marker.h index 3b04cad..bc02918 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) {} |