mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-27 03:21:34 +00:00
Fix more warnings.
This commit is contained in:
parent
447e02c54c
commit
6f6fe519e2
@ -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());
|
||||||
|
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user