Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/include PR/45878: Nick Hudson: SIG_ATOMIC_{MA...



details:   https://anonhg.NetBSD.org/src/rev/d00efdaf4465
branches:  trunk
changeset: 773081:d00efdaf4465
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 27 15:41:02 2012 +0000

description:
PR/45878: Nick Hudson: SIG_ATOMIC_{MAX,MIN} wrong for sig_atomic_t on amd64
sig_atomic_t is an int on amd64, put the proper limits there

diffstat:

 sys/arch/amd64/include/int_limits.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 4638e39c74f6 -r d00efdaf4465 sys/arch/amd64/include/int_limits.h
--- a/sys/arch/amd64/include/int_limits.h       Fri Jan 27 15:37:09 2012 +0000
+++ b/sys/arch/amd64/include/int_limits.h       Fri Jan 27 15:41:02 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: int_limits.h,v 1.7 2008/10/26 00:08:15 mrg Exp $       */
+/*     $NetBSD: int_limits.h,v 1.8 2012/01/27 15:41:02 christos Exp $  */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -120,8 +120,8 @@
 #define        PTRDIFF_MAX     0x7fffffffffffffffL             /* ptrdiff_t      */
 
 /* limits of sig_atomic_t */
-#define        SIG_ATOMIC_MIN  (-0x7fffffffffffffffL-1)        /* sig_atomic_t   */
-#define        SIG_ATOMIC_MAX  0x7fffffffffffffffL             /* sig_atomic_t   */
+#define        SIG_ATOMIC_MIN  (-0x7fffffff-1)                 /* sig_atomic_t   */
+#define        SIG_ATOMIC_MAX  0x7fffffff                      /* sig_atomic_t   */
 
 /* limit of size_t */
 #define        SIZE_MAX        0xffffffffffffffffUL            /* size_t         */



Home | Main Index | Thread Index | Old Index