From 81d7934882ae13c64d9b08d365a0baa011cb2fbb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Wed, 14 May 2025 16:39:32 +0200 Subject: [PATCH] fundamental: assume that intmax_t is the biggest integer Allowing intmax_t to be narrower than some other type in the assert is rather strange. By definition, it is the widest type. Follow-up for c0239e5f113335f49328286698d4a9f13fed983d. --- src/fundamental/macro-fundamental.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fundamental/macro-fundamental.h b/src/fundamental/macro-fundamental.h index 54b3e6a6510..40c84a2efd5 100644 --- a/src/fundamental/macro-fundamental.h +++ b/src/fundamental/macro-fundamental.h @@ -173,7 +173,7 @@ #else # define ABS(a) __builtin_imaxabs(a) #endif -assert_cc(sizeof(intmax_t) <= sizeof(long long)); +assert_cc(sizeof(long long) == sizeof(intmax_t)); #define IS_UNSIGNED_INTEGER_TYPE(type) \ (__builtin_types_compatible_p(typeof(type), unsigned char) || \ -- 2.47.3