Fix handling of uintptr_t

This commit is contained in:
Victor Zverovich
2019-06-12 08:10:15 -07:00
parent 9d7b64a259
commit e5422db4b2
3 changed files with 11 additions and 28 deletions

View File

@@ -257,7 +257,7 @@ TEST(UtilTest, CountDigits) {
TEST(UtilTest, WriteUIntPtr) {
fmt::memory_buffer buf;
fmt::writer writer(buf);
writer.write_pointer(fmt::internal::bit_cast<fmt::internal::uintptr_t>(
writer.write_pointer(fmt::internal::bit_cast<fmt::internal::uintptr>(
reinterpret_cast<void*>(0xface)),
nullptr);
EXPECT_EQ("0xface", to_string(buf));