Browse Source

Fix slot flags in snapshot replay.

Mike Pall 13 years ago
parent
commit
834ff6d36d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lj_snap.c

+ 1 - 1
src/lj_snap.c

@@ -384,7 +384,7 @@ static TRef snap_dedup(jit_State *J, SnapEntry *map, MSize nmax, IRRef ref)
   MSize j;
   MSize j;
   for (j = 0; j < nmax; j++)
   for (j = 0; j < nmax; j++)
     if (snap_ref(map[j]) == ref)
     if (snap_ref(map[j]) == ref)
-      return J->slot[snap_slot(map[j])];
+      return J->slot[snap_slot(map[j])] & ~(SNAP_CONT|SNAP_FRAME);
   return 0;
   return 0;
 }
 }