Fix fallback pointer formatting on big endian

This commit is contained in:
Victor Zverovich
2019-11-29 05:15:59 -08:00
parent ef7369ce90
commit bb205d940d
3 changed files with 30 additions and 14 deletions
+1 -1
View File
@@ -447,7 +447,7 @@ TEST(UtilTest, CountDigits) {
TEST(UtilTest, WriteUIntPtr) {
fmt::memory_buffer buf;
fmt::internal::writer writer(buf);
writer.write_pointer(fmt::internal::bit_cast<fmt::internal::fallback_uintptr>(
writer.write_pointer(fmt::internal::fallback_uintptr(
reinterpret_cast<void*>(0xface)),
nullptr);
EXPECT_EQ("0xface", to_string(buf));