From c251e4c963d291180feff3ac8d22284a08551fee Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 20 Aug 2018 20:36:45 +0100 Subject: Fix parameter type (length) passed into format test --- libadhocutil/unittests/testCompileTimeFormatter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libadhocutil/unittests/testCompileTimeFormatter.cpp b/libadhocutil/unittests/testCompileTimeFormatter.cpp index 6ad491d..2870993 100644 --- a/libadhocutil/unittests/testCompileTimeFormatter.cpp +++ b/libadhocutil/unittests/testCompileTimeFormatter.cpp @@ -335,8 +335,8 @@ GLIBC_FMT_TEST(c2, "in %c.", 'B'); GLIBC_FMT_TEST(d1, "in %d.", 123); GLIBC_FMT_TEST(d2, "in %d.", 123456); -GLIBC_FMT_TEST(d3, "in %hd.", -12345); -GLIBC_FMT_TEST(d4, "in %hhd.", -123); +GLIBC_FMT_TEST(d3, "in %hd.", (int16_t)-12345); +GLIBC_FMT_TEST(d4, "in %hhd.", (int8_t)-123); GLIBC_FMT_TEST(d5, "in %ld.", -123456L); GLIBC_FMT_TEST(d6, "in %lld.", -123456LL); GLIBC_FMT_TEST(i1, "in %i.", 123); -- cgit v1.2.3