From e46f4c8a11bcb2ba76d445e34030ab04ba12668d Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Wed, 24 Feb 2010 05:29:46 +0100 Subject: [PATCH] Fix 64 bit portability problem in rec_ret(). --- src/lj_record.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) if (--J->framedepth < 0) lj_trace_err(J, LJ_TRERR_NYIRETL); lua_assert(J->baseslot > 1); - J->base[--rbase] = TREF_TRUE; /* Prepend true to results. */ gotresults++; rbase += cbase; J->baseslot -= (BCReg)cbase; J->base -= cbase; + J->base[--rbase] = TREF_TRUE; /* Prepend true to results. */ frame = frame_prevd(frame); } if (frame_islua(frame)) { /* Return to Lua frame. */ -- 2.11.4.GIT