From 6f6fe519e24bc8a1cf4db830e3214412e56c9387 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 15 Feb 2014 11:16:44 -0800 Subject: [PATCH] Fix more warnings. --- format-test.cc | 4 ++-- format.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/format-test.cc b/format-test.cc index e0d23dfe..fa9fc63d 100644 --- a/format-test.cc +++ b/format-test.cc @@ -1415,9 +1415,9 @@ TEST(FormatIntTest, Data) { TEST(FormatIntTest, FormatInt) { EXPECT_EQ("42", fmt::FormatInt(42).str()); - EXPECT_EQ(2, fmt::FormatInt(42).size()); + EXPECT_EQ(2u, fmt::FormatInt(42).size()); EXPECT_EQ("-42", fmt::FormatInt(-42).str()); - EXPECT_EQ(3, fmt::FormatInt(-42).size()); + EXPECT_EQ(3u, fmt::FormatInt(-42).size()); EXPECT_EQ("42", fmt::FormatInt(42ul).str()); EXPECT_EQ("-42", fmt::FormatInt(-42l).str()); EXPECT_EQ("42", fmt::FormatInt(42ull).str()); diff --git a/format.cc b/format.cc index ae38e0da..869046b0 100644 --- a/format.cc +++ b/format.cc @@ -139,7 +139,7 @@ const uint64_t fmt::internal::POWERS_OF_10[] = { ULongLong(1000000000) * 10000000, ULongLong(1000000000) * 100000000, ULongLong(1000000000) * 1000000000, - ULongLong(1000000000) * 10000000000 + ULongLong(1000000000) * ULongLong(1000000000) * 10 }; void fmt::internal::ReportUnknownType(char code, const char *type) {