Skip to content

Commit

Permalink
Fix SIGATOMIC_M{IN,AX} on x86-64. These are meant to be the minimum v…
Browse files Browse the repository at this point in the history
…alues 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)
  • Loading branch information
davidchisnall committed Nov 12, 2011
1 parent 1446ecc commit 38d1ac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/amd64/include/_stdint.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38d1ac3

Please sign in to comment.