about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2023-12-22 11:02:05 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-22 15:05:54 +0100
commitea53099fac6d5b1e3b477c239fced40383a01721 (patch)
tree0e766c85cb482d4f531878c0947db7ad188ea4e7
parent4773e9780c426d9cbefce902ca2a416e29444765 (diff)
downloadchawan-ea53099fac6d5b1e3b477c239fced40383a01721.tar.gz
test 128 bit integer support (github issue #125)
-rw-r--r--lib/quickjs/libbf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/quickjs/libbf.h b/lib/quickjs/libbf.h
index 48e9d956..0457c180 100644
--- a/lib/quickjs/libbf.h
+++ b/lib/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