Usermode/libc - Fixed some warnings in strtoi tests
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / TEST_strtoi.c
index 5a8bf7c..6d89224 100644 (file)
@@ -6,6 +6,7 @@
  * - Tests for strtoi.c
  */
 #include <stdio.h>
+#include <stdlib.h>
 
 #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");
 }

UCC git Repository :: git.ucc.asn.au