ref: c1c904776c1536e854c5c1717a104353f885c3cd
parent: 8fe1d622b5b46dee51db6581282ec1fba76782b1
author: Ori Bernstein <[email protected]>
date: Mon Sep 21 07:43:31 EDT 2020
ape/limits.h: fix typo in (U)LLONG_MAX Fix missing 'L' in the size suffix, so we were overflowing the maximum size.
--- a/sys/include/ape/limits.h
+++ b/sys/include/ape/limits.h
@@ -9,7 +9,7 @@
#define USHRT_MAX 0xffff
#define UINT_MAX 0xffffffffU
#define ULONG_MAX 0xffffffffUL
-#define ULLONG_MAX 0xffffffffffffffffUL
+#define ULLONG_MAX 0xffffffffffffffffULL
#define CHAR_MAX SCHAR_MAX
#define SCHAR_MAX 0x7f
@@ -16,7 +16,7 @@
#define SHRT_MAX 0x7fff
#define INT_MAX 0x7fffffff
#define LONG_MAX 0x7fffffffL
-#define LLONG_MAX 0x7fffffffffffffffL
+#define LLONG_MAX 0x7fffffffffffffffLL
#define CHAR_MIN SCHAR_MIN
#define SCHAR_MIN (-SCHAR_MAX-1)