From c1c904776c1536e854c5c1717a104353f885c3cd Mon Sep 17 00:00:00 2001 From: Ori Bernstein Date: Mon, 21 Sep 2020 11:43:31 -0700 Subject: [PATCH] ape/limits.h: fix typo in (U)LLONG_MAX Fix missing 'L' in the size suffix, so we were overflowing the maximum size. --- sys/include/ape/limits.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/include/ape/limits.h b/sys/include/ape/limits.h index 00ff45d17..8bd244de1 100644 --- a/sys/include/ape/limits.h +++ b/sys/include/ape/limits.h @@ -9,14 +9,14 @@ #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 #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)