diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-02 18:16:49 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-02 18:16:49 +0100 |
commit | 6776f4dba975137f4034b1295c0f1958b752a2cb (patch) | |
tree | b51c60c0938cfaeb6376f12cf776b8fce23e3b39 /lib | |
parent | b839e252b6a08bc709fc05a092fb203208d53399 (diff) | |
download | chawan-6776f4dba975137f4034b1295c0f1958b752a2cb.tar.gz |
quickjs: fix build without CONFIG_BIGNUM
broken in upstream :(
Diffstat (limited to 'lib')
-rw-r--r-- | lib/quickjs/quickjs.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/quickjs/quickjs.c b/lib/quickjs/quickjs.c index dd156e20..a5e51d19 100644 --- a/lib/quickjs/quickjs.c +++ b/lib/quickjs/quickjs.c @@ -36055,7 +36055,11 @@ static JSValue JS_ReadBigNum(BCReaderState *s, int tag) JS_ThrowInternalError(s->ctx, "invalid bignum length"); goto fail; } +#ifdef CONFIG_BIGNUM if (tag != BC_TAG_BIG_DECIMAL) +#else + if (TRUE) +#endif l = (len + sizeof(limb_t) - 1) / sizeof(limb_t); else l = (len + LIMB_DIGITS - 1) / LIMB_DIGITS; @@ -36063,7 +36067,11 @@ static JSValue JS_ReadBigNum(BCReaderState *s, int tag) JS_ThrowOutOfMemory(s->ctx); goto fail; } +#ifdef CONFIG_BIGNUM if (tag != BC_TAG_BIG_DECIMAL) { +#else + if (TRUE) { +#endif n = len & (sizeof(limb_t) - 1); if (n != 0) { v = 0; |