]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Minor change to bytecode penalty code for consistency.
authorMike Pall <mike>
Tue, 7 Jun 2011 18:21:03 +0000 (20:21 +0200)
committerMike Pall <mike>
Tue, 7 Jun 2011 18:44:55 +0000 (20:44 +0200)
src/lj_trace.c

index d83d36e6601e839529d40697bc001069e7f3727c..bef4558b21c944a198cf777f8f9e6db64aee89b7 100644 (file)
@@ -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;