From 518927479721d27bded1c60944cd1e3adb5dc2d2 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 13 Oct 2014 06:46:07 -0700 Subject: [PATCH] Fix warnings --- test/util-test.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/util-test.cc b/test/util-test.cc index 7cc51eef..c68e69c1 100644 --- a/test/util-test.cc +++ b/test/util-test.cc @@ -138,22 +138,22 @@ TEST(BufferTest, Ctor) { { MockBuffer buffer; EXPECT_EQ(0, &buffer[0]); - EXPECT_EQ(0, buffer.size()); - EXPECT_EQ(0, buffer.capacity()); + EXPECT_EQ(0u, buffer.size()); + EXPECT_EQ(0u, buffer.capacity()); } { int dummy; MockBuffer buffer(&dummy); EXPECT_EQ(&dummy, &buffer[0]); - EXPECT_EQ(0, buffer.size()); - EXPECT_EQ(0, buffer.capacity()); + EXPECT_EQ(0u, buffer.size()); + EXPECT_EQ(0u, buffer.capacity()); } { int dummy; std::size_t capacity = std::numeric_limits::max(); MockBuffer buffer(&dummy, capacity); EXPECT_EQ(&dummy, &buffer[0]); - EXPECT_EQ(0, buffer.size()); + EXPECT_EQ(0u, buffer.size()); EXPECT_EQ(capacity, buffer.capacity()); } } @@ -433,9 +433,9 @@ ARG_INFO(CUSTOM, Arg::CustomValue, custom); TEST(ArgTest, ArgInfo) { CHECK_ARG_INFO(INT, int_value, 42); - CHECK_ARG_INFO(UINT, uint_value, 42); + CHECK_ARG_INFO(UINT, uint_value, 42u); CHECK_ARG_INFO(LONG_LONG, long_long_value, 42); - CHECK_ARG_INFO(ULONG_LONG, ulong_long_value, 42); + CHECK_ARG_INFO(ULONG_LONG, ulong_long_value, 42u); CHECK_ARG_INFO(DOUBLE, double_value, 4.2); CHECK_ARG_INFO(LONG_DOUBLE, long_double_value, 4.2); CHECK_ARG_INFO(CHAR, int_value, 'x');