diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2008-10-02 17:29:11 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2008-10-02 17:29:11 +0000 |
commit | eea95bd1439db6ef98d12b4bb04fb7598f6296bf (patch) | |
tree | c17b7ff3beefa75f0ebdc9f2be586db384f3875e /newlib/libc | |
parent | 9d36d24f6ed8718fc163449627cb474c7224bf51 (diff) | |
download | cygnal-eea95bd1439db6ef98d12b4bb04fb7598f6296bf.tar.gz cygnal-eea95bd1439db6ef98d12b4bb04fb7598f6296bf.tar.bz2 cygnal-eea95bd1439db6ef98d12b4bb04fb7598f6296bf.zip |
2008-10-02 Jeff Johnston <jjohnstn@redhat.com>
* libc/sys/linux/include/stdint.h (SIZE_MAX): Fix value which should
be size of size_t, not int.
(SIZE_MIN): Remove.
* libc/sys/linux/sys/stdint.h: Ditto
Diffstat (limited to 'newlib/libc')
-rw-r--r-- | newlib/libc/sys/linux/include/stdint.h | 3 | ||||
-rw-r--r-- | newlib/libc/sys/linux/sys/stdint.h | 3 |
2 files changed, 2 insertions, 4 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) diff --git a/newlib/libc/sys/linux/sys/stdint.h b/newlib/libc/sys/linux/sys/stdint.h index 7a6ca767e..f60ce9046 100644 --- a/newlib/libc/sys/linux/sys/stdint.h +++ b/newlib/libc/sys/linux/sys/stdint.h @@ -201,8 +201,7 @@ typedef unsigned long uintmax_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) |