From: John Hodge Date: Tue, 8 Oct 2013 08:14:33 +0000 (+0800) Subject: Usermode/libc - Fixed some warnings in strtoi tests X-Git-Tag: rel0.15~127 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=85653b526282abdbcab5c9b2d3aed13b74261aa9;p=tpg%2Facess2.git Usermode/libc - Fixed some warnings in strtoi tests --- diff --git a/Usermode/Libraries/libc.so_src/TEST_strtoi.c b/Usermode/Libraries/libc.so_src/TEST_strtoi.c index 5a8bf7c5..6d89224e 100644 --- a/Usermode/Libraries/libc.so_src/TEST_strtoi.c +++ b/Usermode/Libraries/libc.so_src/TEST_strtoi.c @@ -6,6 +6,7 @@ * - Tests for strtoi.c */ #include +#include #define TST(t, class, base, val, exp, fmt) do {\ t ret = strto##class(#val, NULL, base); \ @@ -15,5 +16,6 @@ int main(int argc, char *argv[]) { - TST(unsigned long, ul, 0, 0x10ec, 0x10ec, "%x"); + TST(unsigned long, ul, 0, 0x10ec, 0x10ec, "%lx"); + TST(unsigned long long, ull, 0, 0xffeed10ec, 0xffeed10ec, "%llx"); }