From: Mike Pall Date: Tue, 7 Jun 2011 18:21:03 +0000 (+0200) Subject: Minor change to bytecode penalty code for consistency. X-Git-Tag: v2.0.0-beta8~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51ee3d951e6cb5cbcd7d97ba8e82d019df8a2056;p=thirdparty%2FLuaJIT.git Minor change to bytecode penalty code for consistency. --- diff --git a/src/lj_trace.c b/src/lj_trace.c index d83d36e6..bef4558b 100644 --- a/src/lj_trace.c +++ b/src/lj_trace.c @@ -503,7 +503,7 @@ static int trace_abort(jit_State *J) } /* Penalize or blacklist starting bytecode instruction. */ if (J->parent == 0 && !bc_isret(bc_op(J->cur.startins))) - penalty_pc(J, &gcref(J->cur.startpt)->pt, (BCIns *)J->startpc, e); + penalty_pc(J, &gcref(J->cur.startpt)->pt, mref(J->cur.startpc, BCIns), e); /* Is there anything to abort? */ traceno = J->cur.traceno;