From: Zbigniew Jędrzejewski-Szmek Date: Wed, 14 May 2025 14:39:32 +0000 (+0200) Subject: fundamental: assume that intmax_t is the biggest integer X-Git-Tag: v258-rc1~613^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F37442%2Fhead;p=thirdparty%2Fsystemd.git 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. --- 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) || \