aboutsummaryrefslogtreecommitdiff
path: root/lcode.c
diff options
context:
space:
mode:
Diffstat (limited to 'lcode.c')
-rw-r--r--lcode.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lcode.c b/lcode.c
index 047fb74a..724fc2e4 100644
--- a/lcode.c
+++ b/lcode.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lcode.c,v 1.49 2000/08/15 13:18:28 roberto Exp roberto $ 2** $Id: lcode.c,v 1.50 2000/08/31 14:08:27 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*/
@@ -420,13 +420,14 @@ void luaK_posfix (LexState *ls, BinOpr op, expdesc *v1, expdesc *v2) {
420 420
421 421
422static void codelineinfo (FuncState *fs) { 422static void codelineinfo (FuncState *fs) {
423 Proto *f = fs->f;
423 LexState *ls = fs->ls; 424 LexState *ls = fs->ls;
424 if (ls->lastline > fs->lastline) { 425 if (ls->lastline > fs->lastline) {
425 luaM_growvector(fs->L, fs->f->lineinfo, fs->nlineinfo, 2, int, 426 luaM_growvector(fs->L, f->lineinfo, f->nlineinfo, 2, int,
426 "line info overflow", MAX_INT); 427 "line info overflow", MAX_INT);
427 if (ls->lastline > fs->lastline+1) 428 if (ls->lastline > fs->lastline+1)
428 fs->f->lineinfo[fs->nlineinfo++] = -(ls->lastline - (fs->lastline+1)); 429 f->lineinfo[f->nlineinfo++] = -(ls->lastline - (fs->lastline+1));
429 fs->f->lineinfo[fs->nlineinfo++] = fs->pc; 430 f->lineinfo[f->nlineinfo++] = fs->pc;
430 fs->lastline = ls->lastline; 431 fs->lastline = ls->lastline;
431 } 432 }
432} 433}