From 3b56223618420d84d7afa7e1332021f10ecaa3d2 Mon Sep 17 00:00:00 2001 From: dzaima Date: Thu, 3 Nov 2022 17:21:12 +0200 Subject: [PATCH] allow 32768|intarr to squeeze to i16arr --- src/builtins/arithd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtins/arithd.c b/src/builtins/arithd.c index e8992e24..7049f12f 100644 --- a/src/builtins/arithd.c +++ b/src/builtins/arithd.c @@ -128,7 +128,7 @@ typedef void (*AndBytesFn)(u8*, u8*, u64, u64); decG(x); if (wi32==2) return taga(cpyBitArr(r)); if (wi32<256) return taga(cpyI8Arr(r)); // these won't widen, as the code doesn't even get to here if 𝕨 > max possible in 𝕩 - if (wi32<32768) return taga(cpyI16Arr(r)); + if (wi32<65536) return taga(cpyI16Arr(r)); return r; } bad_sa:; )