Fix handling of uintptr_t

This commit is contained in:
Victor Zverovich committed 2019-06-12 08:16:41 -07:00
1 parent 9d7b64a259
commit e5422db4b2
3 files changed
+11 -28

No files matched your search

+1 -1
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));