Parcourir la source

invalid instructions "cannot" happen

Roberto Ierusalimschy il y a 15 ans
Parent
commit
b7be05ad27
1 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 2 3
      lvm.c

+ 2 - 3
lvm.c

@@ -1,5 +1,5 @@
 /*
-** $Id: lvm.c,v 2.110 2010/04/05 16:26:37 roberto Exp roberto $
+** $Id: lvm.c,v 2.111 2010/04/13 20:48:12 roberto Exp roberto $
 ** Lua virtual machine
 ** See Copyright Notice in lua.h
 */
@@ -808,8 +808,7 @@ void luaV_execute (lua_State *L) {
         break;
       }
       case OP_EXTRAARG: {
-        luaG_runerror(L, "bad opcode");
-        return;
+        lua_assert(0);
       }
     }
   }