LONG_MIN and LONG_MAX need suffixes, and ULONG_MAX must either
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 29 Apr 1995 07:30:15 +0000 (23:30 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 29 Apr 1995 07:30:15 +0000 (23:30 -0800)
be spelled in decimal, or suffixed.
From: Chris Torek <torek@BSDI.COM>

SCCS-vsn: sys/hp300/include/limits.h 8.4

usr/src/sys/hp300/include/limits.h

index efd267c..49eb5a1 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)limits.h    8.3 (Berkeley) %G%
+ *     @(#)limits.h    8.4 (Berkeley) %G%
  */
 
 #define        CHAR_BIT        8               /* number of bits in a char */
  */
 
 #define        CHAR_BIT        8               /* number of bits in a char */
 #define        INT_MAX         2147483647      /* max value for an int */
 #define        INT_MIN         (-2147483647-1) /* min value for an int */
 
 #define        INT_MAX         2147483647      /* max value for an int */
 #define        INT_MIN         (-2147483647-1) /* min value for an int */
 
-#define        ULONG_MAX       0xffffffff      /* max value for an unsigned long */
-#define        LONG_MAX        2147483647      /* max value for a long */
-#define        LONG_MIN        (-2147483647-1) /* min value for a long */
+#define        ULONG_MAX       0xffffffffL     /* max value for an unsigned long */
+#define        LONG_MAX        2147483647L     /* max value for a long */
+                                       /* min value for a long */
+#define        LONG_MIN        (-2147483647L-1L)
 
 #if !defined(_ANSI_SOURCE)
 #define        SSIZE_MAX       INT_MAX         /* max value for a ssize_t */
 
 #if !defined(_ANSI_SOURCE)
 #define        SSIZE_MAX       INT_MAX         /* max value for a ssize_t */