diff options
author | Mike Pall <mike> | 2011-02-17 00:44:14 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2011-02-17 00:44:14 +0100 |
commit | 03946ac978d9a1a3230619e3da048002e5fda2d1 (patch) | |
tree | c0a7b8edaccf789f128468320d451d9a1fee1495 /src/lj_snap.c | |
parent | 963f05c7e153714921484e0de71a7cb6bab338d9 (diff) | |
download | luajit-03946ac978d9a1a3230619e3da048002e5fda2d1.tar.gz luajit-03946ac978d9a1a3230619e3da048002e5fda2d1.tar.bz2 luajit-03946ac978d9a1a3230619e3da048002e5fda2d1.zip |
DUALNUM: Add integer type to core VM.
Diffstat (limited to 'src/lj_snap.c')
-rw-r--r-- | src/lj_snap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_snap.c b/src/lj_snap.c index fa2a20e0..e04da81f 100644 --- a/src/lj_snap.c +++ b/src/lj_snap.c | |||
@@ -289,7 +289,7 @@ const BCIns *lj_snap_restore(jit_State *J, void *exptr) | |||
289 | Reg r = regsp_reg(rs); | 289 | Reg r = regsp_reg(rs); |
290 | lua_assert(ra_hasreg(r)); | 290 | lua_assert(ra_hasreg(r)); |
291 | if (irt_isinteger(t)) { | 291 | if (irt_isinteger(t)) { |
292 | setintV(o, ex->gpr[r-RID_MIN_GPR]); | 292 | setintV(o, (int32_t)ex->gpr[r-RID_MIN_GPR]); |
293 | } else if (irt_isnum(t)) { | 293 | } else if (irt_isnum(t)) { |
294 | setnumV(o, ex->fpr[r-RID_MIN_FPR]); | 294 | setnumV(o, ex->fpr[r-RID_MIN_FPR]); |
295 | #if LJ_64 | 295 | #if LJ_64 |