Browse Source

Fix TRef for (dummy) 2nd arg of __len metamethod.

Mike Pall 15 years ago
parent
commit
3336434aa0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lj_record.c

+ 1 - 1
src/lj_record.c

@@ -1947,7 +1947,7 @@ void lj_record_ins(jit_State *J)
     } else {
     } else {
       ix.tab = rc;
       ix.tab = rc;
       copyTV(J->L, &ix.tabv, &ix.keyv);
       copyTV(J->L, &ix.tabv, &ix.keyv);
-      ix.key = IRT_NIL;
+      ix.key = TREF_NIL;
       setnilV(&ix.keyv);
       setnilV(&ix.keyv);
       rc = rec_mm_arith(J, &ix, MM_len);
       rc = rec_mm_arith(J, &ix, MM_len);
     }
     }