We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3b58d commit 0191aeaCopy full SHA for 0191aea
quickjs.c
@@ -10617,6 +10617,8 @@ do { \
10617
/* a != 0 */
10618
static inline js_limb_t js_limb_clz(js_limb_t a)
10619
{
10620
+ if (!a)
10621
+ return JS_LIMB_BITS;
10622
return clz32(a);
10623
}
10624
tests/test_bigint.js
@@ -63,6 +63,8 @@ function test_bigint1()
63
64
r = 1n << 32n;
65
assert(r, 4294967296n, "1 << 32n === 4294967296n");
66
+
67
+ assert(String(-9223372036854775808n), "-9223372036854775808");
68
69
70
function test_bigint2()
0 commit comments