From: Mike Pall Date: Wed, 13 Nov 2024 08:18:32 +0000 (+0100) Subject: Fix bit op coercion for shifts in DUALNUM builds. X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=69bbf3c1b01de8239444b0c430a89fa868978fea;p=thirdparty%2FLuaJIT.git Fix bit op coercion for shifts in DUALNUM builds. Reported by Junlong Li. Followup to #1273 --- 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);