diff options
author | theraven <theraven@FreeBSD.org> | 2011-11-12 20:16:06 +0000 |
---|---|---|
committer | theraven <theraven@FreeBSD.org> | 2011-11-12 20:16:06 +0000 |
commit | c6324933b2fe055e1a022148fff8ab5ad7684c4f (patch) | |
tree | fb13c9132426ed7c7f3e68b422151887b9672452 /sys/amd64/include/_stdint.h | |
parent | cef1efa0562bdab1761df9ccb2b05f3854d95aa9 (diff) | |
download | FreeBSD-src-c6324933b2fe055e1a022148fff8ab5ad7684c4f.zip FreeBSD-src-c6324933b2fe055e1a022148fff8ab5ad7684c4f.tar.gz |
Fix SIGATOMIC_M{IN,AX} on x86-64. These are meant to be the minimum values that are allowed in a sig_atomic_t, but it looks like they were just copied from the x86 versions, so these definitions violate the C and C++ specs. Mismatch was spotted by the libc++ test suite.
Approved by: dim (mentor)
Diffstat (limited to 'sys/amd64/include/_stdint.h')
-rw-r--r-- | sys/amd64/include/_stdint.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/include/_stdint.h b/sys/amd64/include/_stdint.h index ee4e592..d755bb3 100644 --- a/sys/amd64/include/_stdint.h +++ b/sys/amd64/include/_stdint.h @@ -150,8 +150,8 @@ #define PTRDIFF_MAX INT64_MAX /* Limits of sig_atomic_t. */ -#define SIG_ATOMIC_MIN INT32_MIN -#define SIG_ATOMIC_MAX INT32_MAX +#define SIG_ATOMIC_MIN LONG_MIN +#define SIG_ATOMIC_MAX LONG_MAX /* Limit of size_t. */ #define SIZE_MAX UINT64_MAX |