From 69bbf3c1b01de8239444b0c430a89fa868978fea Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 13 Nov 2024 09:18:32 +0100 Subject: [PATCH] Fix bit op coercion for shifts in DUALNUM builds. Reported by Junlong Li. Followup to #1273 --- src/lib_bit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib_bit.c b/src/lib_bit.c index ce40e298..ada9614d 100644 --- a/src/lib_bit.c +++ b/src/lib_bit.c @@ -98,7 +98,7 @@ LJLIB_ASM(bit_lshift) LJLIB_REC(bit_shift IR_BSHL) x = lj_carith_shift64(x, sh, curr_func(L)->c.ffid - (int)FF_bit_lshift); return bit_result64(L, id, x); } - if (id2) setintV(L->base+1, sh); + setintV(L->base+1, sh); return FFH_RETRY; #else lj_lib_checknumber(L, 1);