mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-04-21 14:23:26 +00:00
parent
93a65d3cc2
commit
7411720364
@ -501,7 +501,8 @@ TRef LJ_FASTCALL lj_opt_narrow_cindex(jit_State *J, TRef tr)
|
||||
{
|
||||
lua_assert(tref_isnumber(tr));
|
||||
if (tref_isnum(tr))
|
||||
return emitir(IRT(IR_CONV, IRT_INTP), tr, (IRT_INTP<<5)|IRT_NUM|IRCONV_ANY);
|
||||
return emitir(IRT(IR_CONV, IRT_INTP), tr,
|
||||
(IRT_INTP<<5)|IRT_NUM|IRCONV_TRUNC|IRCONV_ANY);
|
||||
/* Undefined overflow semantics allow stripping of ADDOV, SUBOV and MULOV. */
|
||||
return narrow_stripov(J, tr, IR_MULOV,
|
||||
LJ_64 ? ((IRT_INTP<<5)|IRT_INT|IRCONV_SEXT) :
|
||||
|
Loading…
Reference in New Issue
Block a user