aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-10 17:51:15 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-10-10 17:51:15 -0200
commite323338fd09216069d1290ec099ac987aadb036b (patch)
tree6350f6fd6ecf91f849871dcac0d5f1b3cc7b6470
parent46b543ebef302ddb70cee59bb47ca542828de1d2 (diff)
downloadlua-e323338fd09216069d1290ec099ac987aadb036b.tar.gz
lua-e323338fd09216069d1290ec099ac987aadb036b.tar.bz2
lua-e323338fd09216069d1290ec099ac987aadb036b.zip
`nlineinfo' must include end flag.
-rw-r--r--lparser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lparser.c b/lparser.c
index e85b4cde..20cfad38 100644
--- a/lparser.c
+++ b/lparser.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lparser.c,v 1.113 2000/09/27 17:41:58 roberto Exp roberto $ 2** $Id: lparser.c,v 1.114 2000/09/29 12:42:13 roberto Exp roberto $
3** LL(1) Parser and code generator for Lua 3** LL(1) Parser and code generator for Lua
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -337,7 +337,7 @@ static void close_func (LexState *ls) {
337 removelocalvars(ls, fs->nactloc); 337 removelocalvars(ls, fs->nactloc);
338 luaM_reallocvector(L, f->locvars, f->nlocvars, LocVar); 338 luaM_reallocvector(L, f->locvars, f->nlocvars, LocVar);
339 luaM_reallocvector(L, f->lineinfo, f->nlineinfo+1, int); 339 luaM_reallocvector(L, f->lineinfo, f->nlineinfo+1, int);
340 f->lineinfo[f->nlineinfo] = MAX_INT; /* end flag */ 340 f->lineinfo[f->nlineinfo++] = MAX_INT; /* end flag */
341 luaF_protook(L, f, fs->pc); /* proto is ok now */ 341 luaF_protook(L, f, fs->pc); /* proto is ok now */
342 ls->fs = fs->prev; 342 ls->fs = fs->prev;
343 LUA_ASSERT(fs->bl == NULL, "wrong list end"); 343 LUA_ASSERT(fs->bl == NULL, "wrong list end");