diff options
| author | Mike Pall <mike> | 2010-02-24 05:29:46 +0100 |
|---|---|---|
| committer | Mike Pall <mike> | 2010-02-24 05:29:46 +0100 |
| commit | e46f4c8a11bcb2ba76d445e34030ab04ba12668d (patch) | |
| tree | b8982b1bbe61baedd93c3a706b7c78a4d3a9de63 /src | |
| parent | 13a9d7e135b9f4aecac8a09abdd25c942be1db2b (diff) | |
| download | luajit-e46f4c8a11bcb2ba76d445e34030ab04ba12668d.tar.gz luajit-e46f4c8a11bcb2ba76d445e34030ab04ba12668d.tar.bz2 luajit-e46f4c8a11bcb2ba76d445e34030ab04ba12668d.zip | |
Fix 64 bit portability problem in rec_ret().
Diffstat (limited to 'src')
| -rw-r--r-- | src/lj_record.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_record.c b/src/lj_record.c index 1ef01386..3f2abcdf 100644 --- a/src/lj_record.c +++ b/src/lj_record.c | |||
| @@ -534,11 +534,11 @@ static void rec_ret(jit_State *J, BCReg rbase, ptrdiff_t gotresults) | |||
| 534 | if (--J->framedepth < 0) | 534 | if (--J->framedepth < 0) |
| 535 | lj_trace_err(J, LJ_TRERR_NYIRETL); | 535 | lj_trace_err(J, LJ_TRERR_NYIRETL); |
| 536 | lua_assert(J->baseslot > 1); | 536 | lua_assert(J->baseslot > 1); |
| 537 | J->base[--rbase] = TREF_TRUE; /* Prepend true to results. */ | ||
| 538 | gotresults++; | 537 | gotresults++; |
| 539 | rbase += cbase; | 538 | rbase += cbase; |
| 540 | J->baseslot -= (BCReg)cbase; | 539 | J->baseslot -= (BCReg)cbase; |
| 541 | J->base -= cbase; | 540 | J->base -= cbase; |
| 541 | J->base[--rbase] = TREF_TRUE; /* Prepend true to results. */ | ||
| 542 | frame = frame_prevd(frame); | 542 | frame = frame_prevd(frame); |
| 543 | } | 543 | } |
| 544 | if (frame_islua(frame)) { /* Return to Lua frame. */ | 544 | if (frame_islua(frame)) { /* Return to Lua frame. */ |
