diff options
Diffstat (limited to 'lundump.c')
-rw-r--r-- | lundump.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lundump.c,v 1.36 2000/12/28 12:55:41 roberto Exp roberto $ | 2 | ** $Id: lundump.c,v 1.37 2000/12/28 12:59:41 roberto Exp roberto $ |
3 | ** load bytecodes from files | 3 | ** load bytecodes from files |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -108,7 +108,6 @@ static void LoadCode (lua_State* L, Proto* tf, ZIO* Z, int swap) | |||
108 | tf->code=luaM_newvector(L,size,Instruction); | 108 | tf->code=luaM_newvector(L,size,Instruction); |
109 | tf->sizecode=size; | 109 | tf->sizecode=size; |
110 | LoadVector(L,tf->code,size,sizeof(*tf->code),Z,swap); | 110 | LoadVector(L,tf->code,size,sizeof(*tf->code),Z,swap); |
111 | if (tf->code[size-1]!=OP_END) luaO_verror(L,"bad code in `%.99s'",ZNAME(Z)); | ||
112 | } | 111 | } |
113 | 112 | ||
114 | static void LoadLocals (lua_State* L, Proto* tf, ZIO* Z, int swap) | 113 | static void LoadLocals (lua_State* L, Proto* tf, ZIO* Z, int swap) |