x64: Fix result type of cdata index conversions.

This commit is contained in:
Mike Pall 2011-08-11 22:05:35 +02:00
parent 05ef03e2d0
commit 10ffd05ba9

View File

@ -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,