Fix more warnings.

This commit is contained in:
Victor Zverovich 2014-02-15 11:16:44 -08:00
parent 447e02c54c
commit 6f6fe519e2
2 changed files with 3 additions and 3 deletions

View File

@ -1415,9 +1415,9 @@ TEST(FormatIntTest, Data) {
TEST(FormatIntTest, FormatInt) { TEST(FormatIntTest, FormatInt) {
EXPECT_EQ("42", fmt::FormatInt(42).str()); 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("-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(42ul).str());
EXPECT_EQ("-42", fmt::FormatInt(-42l).str()); EXPECT_EQ("-42", fmt::FormatInt(-42l).str());
EXPECT_EQ("42", fmt::FormatInt(42ull).str()); EXPECT_EQ("42", fmt::FormatInt(42ull).str());

View File

@ -139,7 +139,7 @@ const uint64_t fmt::internal::POWERS_OF_10[] = {
ULongLong(1000000000) * 10000000, ULongLong(1000000000) * 10000000,
ULongLong(1000000000) * 100000000, ULongLong(1000000000) * 100000000,
ULongLong(1000000000) * 1000000000, ULongLong(1000000000) * 1000000000,
ULongLong(1000000000) * 10000000000 ULongLong(1000000000) * ULongLong(1000000000) * 10
}; };
void fmt::internal::ReportUnknownType(char code, const char *type) { void fmt::internal::ReportUnknownType(char code, const char *type) {