Fix narrowing conversion from -1 to size_t

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1010 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
jessicag.feedback 2012-08-14 01:03:14 +00:00
parent 066d09538f
commit f8c1de5643

View File

@ -56,13 +56,13 @@ const struct {
{ true, 2, kBufferSize - 2 }, { true, 2, kBufferSize - 2 },
{ true, kBufferSize - 1, 1 }, { true, kBufferSize - 1, 1 },
{ false, kBufferSize, 0 }, { false, kBufferSize, 0 },
{ false, kBufferSize, -1 }, { false, kBufferSize, static_cast<size_t>(-1) },
{ false, kBufferSize + 1, 0 }, { false, kBufferSize + 1, 0 },
{ false, -1, 2 }, { false, static_cast<size_t>(-1), 2 },
{ false, 1, kBufferSize }, { false, 1, kBufferSize },
{ false, kBufferSize - 1, 2 }, { false, kBufferSize - 1, 2 },
{ false, 0, -1 }, { false, 0, static_cast<size_t>(-1) },
{ false, 1, -1 }, { false, 1, static_cast<size_t>(-1) },
}; };
const size_t kNumSubranges = sizeof(kSubranges) / sizeof(kSubranges[0]); const size_t kNumSubranges = sizeof(kSubranges) / sizeof(kSubranges[0]);