aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjessicag.feedback <jessicag.feedback@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-08-14 01:03:14 +0000
committerjessicag.feedback <jessicag.feedback@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-08-14 01:03:14 +0000
commitf8c1de564312cdbf48d6b7273231f30db73ff492 (patch)
treeeeb4bf39594a39b11cb19c08f5f50c1d55225c04 /src
parentMake ExceptionHandler::HandleSignal() public. (diff)
downloadbreakpad-f8c1de564312cdbf48d6b7273231f30db73ff492.tar.xz
Fix narrowing conversion from -1 to size_t
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1010 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src')
-rw-r--r--src/tools/linux/md2core/minidump_memory_range_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/linux/md2core/minidump_memory_range_unittest.cc b/src/tools/linux/md2core/minidump_memory_range_unittest.cc
index bf94ad52..296f621a 100644
--- a/src/tools/linux/md2core/minidump_memory_range_unittest.cc
+++ b/src/tools/linux/md2core/minidump_memory_range_unittest.cc
@@ -56,13 +56,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]);