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 c0239e5f11.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2025-05-14 18:35:32 +02:00
parent 1a47f96a8d
commit 81d7934882
+1 -1
View File
@@ -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) || \