Use lj_vm_tobit() on targets without FPU.

This commit is contained in:
Mike Pall
2011-04-10 16:57:09 +02:00
parent f089f3954c
commit 89022b4c3e
3 changed files with 12 additions and 3 deletions

View File

@@ -541,9 +541,7 @@ LJFOLDF(kfold_add_kptr)
LJFOLD(TOBIT KNUM KNUM)
LJFOLDF(kfold_tobit)
{
TValue tv;
tv.n = knumleft + knumright;
return INTFOLD((int32_t)tv.u32.lo);
return INTFOLD(lj_num2bit(knumleft));
}
LJFOLD(CONV KINT IRCONV_NUM_INT)