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(-1) }, { false, kBufferSize + 1, 0 }, - { false, -1, 2 }, + { false, static_cast(-1), 2 }, { false, 1, kBufferSize }, { false, kBufferSize - 1, 2 }, - { false, 0, -1 }, - { false, 1, -1 }, + { false, 0, static_cast(-1) }, + { false, 1, static_cast(-1) }, }; const size_t kNumSubranges = sizeof(kSubranges) / sizeof(kSubranges[0]);