summaryrefslogtreecommitdiffstats
path: root/newlib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/sys/_types.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h
index 06ddd8329..297b1ea5a 100644
--- a/newlib/libc/include/sys/_types.h
+++ b/newlib/libc/include/sys/_types.h
@@ -127,9 +127,9 @@ typedef _off64_t _fpos64_t;
typedef __SIZE_TYPE__ __size_t;
#else
#if defined(__INT_MAX__) && __INT_MAX__ == 2147483647
-typedef int __size_t;
+typedef unsigned int __size_t;
#else
-typedef long __size_t;
+typedef unsigned long __size_t;
#endif
#endif
#endif