mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 15:14:08 +00:00
Fix bit op coercion for shifts in DUALNUM builds.
Reported by Junlong Li. Followup to #1273
This commit is contained in:
parent
97813fb924
commit
69bbf3c1b0
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user