software: fix size_t and ptrdiff_t
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Tue, 7 Feb 2012 11:06:49 +0000 (12:06 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Tue, 7 Feb 2012 11:06:49 +0000 (12:06 +0100)
software/include/base/stdlib.h

index ed22bdd9a734ef0dcf19c982eb7b86f8b9655936..685cc5a61d6871663863db47c84b9e98de7716d7 100644 (file)
@@ -27,8 +27,8 @@
 #define PRINTF_SPECIAL 32              /* 0x */
 #define PRINTF_LARGE   64              /* use 'ABCDEF' instead of 'abcdef' */
 
-typedef int size_t;
-typedef int ptrdiff_t;
+typedef unsigned long size_t;
+typedef long ptrdiff_t;
 
 #define NULL ((void *)0)