From 632b3a9a4f0cd11209796e4fbd724b38ad8c8e8a Mon Sep 17 00:00:00 2001 From: Wildan M Date: Sun, 25 Jan 2026 01:09:39 +0700 Subject: [PATCH] Fix SIZE_MAX for i586 --- include/stdint.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/stdint.h b/include/stdint.h index 14ebcdacc2..74c5959564 100644 --- a/include/stdint.h +++ b/include/stdint.h @@ -367,8 +367,12 @@ typedef __UINTMAX_TYPE__ uintmax_t; #undef WINT_WIDTH #define WINT_WIDTH __WINT_WIDTH__ +#ifdef __ILP32__ +#define SIZE_MAX UINT32_MAX +#else #define SIZE_MAX UINT64_MAX #endif +#endif typedef long sig_atomic_t;