Fix bit op coercion for shifts in DUALNUM builds.

Reported by Junlong Li. Followup to #1273
This commit is contained in:
Mike Pall 2024-11-13 09:18:32 +01:00
parent 97813fb924
commit 69bbf3c1b0

View File

@ -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); x = lj_carith_shift64(x, sh, curr_func(L)->c.ffid - (int)FF_bit_lshift);
return bit_result64(L, id, x); return bit_result64(L, id, x);
} }
if (id2) setintV(L->base+1, sh); setintV(L->base+1, sh);
return FFH_RETRY; return FFH_RETRY;
#else #else
lj_lib_checknumber(L, 1); lj_lib_checknumber(L, 1);