commit 64f32e4f8096bb840f6cd1c1c501c061a96edd60
parent 477ef2fe588d093386ce4ef84cd5e29c0d9b21e0
Author: Fabrice Bellard <fabrice@bellard.org>
Date: Fri, 22 Dec 2023 11:02:05 +0100
test 128 bit integer support (github issue #125)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/quickjs/libbf.h b/quickjs/libbf.h
@@ -27,7 +27,7 @@
#include <stddef.h>
#include <stdint.h>
-#if INTPTR_MAX >= INT64_MAX
+#if defined(__SIZEOF_INT128__) && (INTPTR_MAX >= INT64_MAX)
#define LIMB_LOG2_BITS 6
#else
#define LIMB_LOG2_BITS 5