From c8a11225cf30740590d469d835c7ba367627abca Mon Sep 17 00:00:00 2001 From: tylov Date: Sat, 8 Jul 2023 23:45:13 +0200 Subject: Fixes from 32-bit raspberry pi testing. --- include/stc/ccommon.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h index 6f42bcc1..0cce1610 100644 --- a/include/stc/ccommon.h +++ b/include/stc/ccommon.h @@ -174,7 +174,7 @@ STC_INLINE intptr_t cnextpow2(intptr_t n) { n |= n >> 1, n |= n >> 2; n |= n >> 4, n |= n >> 8; n |= n >> 16; - #if INTPTR_SIZE == INT64_SIZE + #if INTPTR_MAX == INT64_MAX n |= n >> 32; #endif return n + 1; -- cgit v1.2.3