Fix a warning.

This commit is contained in:
Victor Zverovich 2014-02-19 13:05:50 -08:00
parent f1d8516467
commit 9bb93992b6

View File

@ -174,7 +174,7 @@ TEST(UtilTest, Increment) {
template <typename Int> template <typename Int>
void TestCountDigits(Int) { void TestCountDigits(Int) {
for (Int i = 0; i < 10; ++i) for (Int i = 0; i < 10; ++i)
EXPECT_EQ(1, fmt::internal::CountDigits(i)); EXPECT_EQ(1u, fmt::internal::CountDigits(i));
for (Int i = 1, n = 1, for (Int i = 1, n = 1,
end = std::numeric_limits<Int>::max() / 10; n <= end; ++i) { end = std::numeric_limits<Int>::max() / 10; n <= end; ++i) {
n *= 10; n *= 10;