From 85653b526282abdbcab5c9b2d3aed13b74261aa9 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 8 Oct 2013 16:14:33 +0800 Subject: [PATCH] Usermode/libc - Fixed some warnings in strtoi tests --- Usermode/Libraries/libc.so_src/TEST_strtoi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"); } -- 2.20.1