mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
x64: Fix result type of cdata index conversions.
This commit is contained in:
parent
05ef03e2d0
commit
10ffd05ba9
@ -495,7 +495,7 @@ TRef LJ_FASTCALL lj_opt_narrow_cindex(jit_State *J, TRef tr)
|
||||
{
|
||||
lua_assert(tref_isnumber(tr));
|
||||
if (tref_isnum(tr))
|
||||
return emitir(IRTI(IR_CONV), tr,
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user