Skip to content

Commit

Permalink
Merge pull request #443 from iptux-src/lidaobing/issue442
Browse files Browse the repository at this point in the history
fix ut fail under 32bit system
  • Loading branch information
lidaobing authored Apr 13, 2021
2 parents 84b2425 + 10eb790 commit 6de7175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iptux-utils/UtilsTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ TEST(Utils, numeric_to_size) {
EXPECT_STREQ(numeric_to_size(1000000000), "953.7MiB");
EXPECT_STREQ(numeric_to_size(1 << 30), "1.0GiB");
EXPECT_STREQ(numeric_to_size(1000000000000L), "931.3GiB");
EXPECT_STREQ(numeric_to_size(1L << 40), "1.0TiB");
EXPECT_STREQ(numeric_to_size((int64_t)1 << 40), "1.0TiB");
EXPECT_STREQ(numeric_to_size(-1), "-1B");
EXPECT_STREQ(numeric_to_size(-1024), "-1024B");
}
Expand Down

0 comments on commit 6de7175

Please sign in to comment.