From f68d329d24a1d9e1880bb17ddd34e0cc9199dbcb Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 30 Apr 2014 11:22:20 -0700 Subject: [PATCH] Fix warning. --- format-test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format-test.cc b/format-test.cc index 7da061fa..c851f184 100644 --- a/format-test.cc +++ b/format-test.cc @@ -268,7 +268,7 @@ TEST(UtilTest, StrError) { EXPECT_STREQ("", message); result = StrError(error_code, message = buffer, BUFFER_SIZE); EXPECT_EQ(0, result); - EXPECT_GE(BUFFER_SIZE - 1, std::strlen(message)); + EXPECT_GE(BUFFER_SIZE - 1u, std::strlen(message)); EXPECT_STREQ(strerror(error_code), message); result = StrError(error_code, message = buffer, std::strlen(message)); EXPECT_EQ(ERANGE, result);