summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2006-01-14 13:19:52 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2006-01-14 13:19:52 +0000
commitd80500bc6c29ac0bc01b806038fdec7662a65bc9 (patch)
treef077151649fe655956d3f51cdf8fbb5df8ff7f81 /sys
parent4094754983ade36bb811a07c1bb3c755d4029b65 (diff)
Fix INTX_MIN limits; the minus sign got dropped by accident when
I was converting the values frm decimal to hex.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/stdint.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/sys/stdint.h b/sys/sys/stdint.h
index 45704424dc1..af180cecd65 100644
--- a/sys/sys/stdint.h
+++ b/sys/sys/stdint.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: stdint.h,v 1.2 2006/01/06 19:04:41 millert Exp $ */
+/* $OpenBSD: stdint.h,v 1.3 2006/01/14 13:19:51 millert Exp $ */
/*
* Copyright (c) 1997, 2005 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -104,10 +104,10 @@ typedef __uintmax_t uintmax_t;
*/
/* 7.18.2.1 Limits of exact-width integer types */
-#define INT8_MIN (0x7f - 1)
-#define INT16_MIN (0x7fff - 1)
-#define INT32_MIN (0x7fffffff - 1)
-#define INT64_MIN (0x7fffffffffffffffLL - 1)
+#define INT8_MIN (-0x7f - 1)
+#define INT16_MIN (-0x7fff - 1)
+#define INT32_MIN (-0x7fffffff - 1)
+#define INT64_MIN (-0x7fffffffffffffffLL - 1)
#define INT8_MAX 0x7f
#define INT16_MAX 0x7fff