summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/linux/include/stdint.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/include/stdint.h')
-rw-r--r--newlib/libc/sys/linux/include/stdint.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/newlib/libc/sys/linux/include/stdint.h b/newlib/libc/sys/linux/include/stdint.h
index 682af1f7a..36ed6dacb 100644
--- a/newlib/libc/sys/linux/include/stdint.h
+++ b/newlib/libc/sys/linux/include/stdint.h
@@ -241,8 +241,7 @@ typedef uint64_t uint_least32_t;
#endif
/* This must match size_t in stddef.h, currently long unsigned int */
-#define SIZE_MIN (-__STDINT_EXP(LONG_MAX) - 1L)
-#define SIZE_MAX __STDINT_EXP(LONG_MAX)
+#define SIZE_MAX (__STDINT_EXP(LONG_MAX) * 2UL + 1)
/* This must match sig_atomic_t in <signal.h> (currently int) */
#define SIG_ATOMIC_MIN (-__STDINT_EXP(INT_MAX) - 1)