diff options
Diffstat (limited to 'lcode.c')
-rw-r--r-- | lcode.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lcode.c,v 1.40 2000/06/28 20:20:36 roberto Exp roberto $ | 2 | ** $Id: lcode.c,v 1.41 2000/06/30 14:35:17 roberto Exp roberto $ |
3 | ** Code generator for Lua | 3 | ** Code generator for Lua |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -620,8 +620,8 @@ int luaK_code2 (FuncState *fs, OpCode o, int arg1, int arg2) { | |||
620 | } | 620 | } |
621 | if (fs->debug) { | 621 | if (fs->debug) { |
622 | LexState *ls = fs->ls; | 622 | LexState *ls = fs->ls; |
623 | luaX_checklimit(ls, ls->lastline, MAXARG_U, "lines in a chunk"); | 623 | luaM_growvector(fs->L, fs->f->lines, fs->pc, 1, int, |
624 | luaM_growvector(fs->L, fs->f->lines, fs->pc, 1, int, "??", MAXARG_U); | 624 | "code size overflow", MAX_INT); |
625 | fs->f->lines[fs->pc] = ls->lastline; | 625 | fs->f->lines[fs->pc] = ls->lastline; |
626 | } | 626 | } |
627 | /* put new instruction in code array */ | 627 | /* put new instruction in code array */ |