Fix handling of uintptr_t
This commit is contained in:
1 parent
9d7b64a259
commit
e5422db4b2
3 files changed
+11
-28
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user