summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2018-08-20 20:36:45 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2018-08-20 20:36:45 +0100
commitc251e4c963d291180feff3ac8d22284a08551fee (patch)
tree35b36c46d76db7285b38b074a192778a0fc8585f
parentRemove comically GCC specific buildVariant from definedDirs (diff)
downloadlibadhocutil-c251e4c963d291180feff3ac8d22284a08551fee.tar.bz2
libadhocutil-c251e4c963d291180feff3ac8d22284a08551fee.tar.xz
libadhocutil-c251e4c963d291180feff3ac8d22284a08551fee.zip
Fix parameter type (length) passed into format test
-rw-r--r--libadhocutil/unittests/testCompileTimeFormatter.cpp4
1 files 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);