diff options
Diffstat (limited to 'tests/libc_logging_test.cpp')
-rw-r--r-- | tests/libc_logging_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libc_logging_test.cpp b/tests/libc_logging_test.cpp index d9c615e..5b10ce3 100644 --- a/tests/libc_logging_test.cpp +++ b/tests/libc_logging_test.cpp @@ -53,10 +53,10 @@ TEST(libc_logging, smoke) { __libc_format_buffer(buf, sizeof(buf), "a%db", -8123); EXPECT_STREQ("a-8123b", buf); - __libc_format_buffer(buf, sizeof(buf), "a%hdb", 0x7fff0010); + __libc_format_buffer(buf, sizeof(buf), "a%hdb", static_cast<short>(0x7fff0010)); EXPECT_STREQ("a16b", buf); - __libc_format_buffer(buf, sizeof(buf), "a%hhdb", 0x7fffff10); + __libc_format_buffer(buf, sizeof(buf), "a%hhdb", static_cast<char>(0x7fffff10)); EXPECT_STREQ("a16b", buf); __libc_format_buffer(buf, sizeof(buf), "a%lldb", 0x1000000000LL); |