diff options
author | jessicag.feedback <jessicag.feedback@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-08-07 21:00:36 +0000 |
---|---|---|
committer | jessicag.feedback <jessicag.feedback@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-08-07 21:00:36 +0000 |
commit | 1c3f79dfeb059f14c19898140a2309c5c338fe6e (patch) | |
tree | 2ba734eed2ee017af86df808efe82639661ed474 /src | |
parent | Prepending file names with "src/" in #include directives is undesirable. (diff) | |
download | breakpad-1c3f79dfeb059f14c19898140a2309c5c338fe6e.tar.xz |
Clean up warnings about narrowing conversion
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1006 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src')
-rw-r--r-- | src/common/memory_range_unittest.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/memory_range_unittest.cc b/src/common/memory_range_unittest.cc index f0831e85..252b037e 100644 --- a/src/common/memory_range_unittest.cc +++ b/src/common/memory_range_unittest.cc @@ -55,13 +55,13 @@ const struct { { true, 2, kBufferSize - 2 }, { true, kBufferSize - 1, 1 }, { false, kBufferSize, 0 }, - { false, kBufferSize, -1 }, + { false, kBufferSize, static_cast<size_t>(-1) }, { false, kBufferSize + 1, 0 }, - { false, -1, 2 }, + { false, static_cast<size_t>(-1), 2 }, { false, 1, kBufferSize }, { false, kBufferSize - 1, 2 }, - { false, 0, -1 }, - { false, 1, -1 }, + { false, 0, static_cast<size_t>(-1) }, + { false, 1, static_cast<size_t>(-1) }, }; const size_t kNumSubranges = sizeof(kSubranges) / sizeof(kSubranges[0]); |