From bc225babf14684a587f63f03cbe4467eb40fb601 Mon Sep 17 00:00:00 2001 From: Lua Team Date: Thu, 25 Nov 1999 18:25:24 +0000 Subject: [PATCH] Imported from ../lua-3.2.1.tar.gz. --- include/lua.h | 4 ++-- src/lparser.c | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/lua.h b/include/lua.h index f46b2e1..5635a55 100644 --- a/include/lua.h +++ b/include/lua.h @@ -1,5 +1,5 @@ /* -** $Id: lua.h,v 1.32 1999/05/11 20:29:19 roberto Exp $ +** $Id: lua.h,v 1.32a 1999/05/11 20:29:19 roberto Exp $ ** Lua - An Extensible Extension Language ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil ** e-mail: lua@tecgraf.puc-rio.br @@ -11,7 +11,7 @@ #ifndef lua_h #define lua_h -#define LUA_VERSION "Lua 3.2" +#define LUA_VERSION "Lua 3.2.1" #define LUA_COPYRIGHT "Copyright (C) 1994-1999 TeCGraf, PUC-Rio" #define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo" diff --git a/src/lparser.c b/src/lparser.c index c18b75c..b0aa13f 100644 --- a/src/lparser.c +++ b/src/lparser.c @@ -1,5 +1,5 @@ /* -** $Id: lparser.c,v 1.37 1999/06/17 17:04:03 roberto Exp $ +** $Id: lparser.c,v 1.37a 1999/06/17 17:04:03 roberto Exp $ ** LL(1) Parser and code generator for Lua ** See Copyright Notice in lua.h */ @@ -665,7 +665,8 @@ static int checkname (LexState *ls) { static TaggedString *str_checkname (LexState *ls) { - return tsvalue(&ls->fs->f->consts[checkname(ls)]); + int i = checkname(ls); /* this call may realloc `f->consts' */ + return tsvalue(&ls->fs->f->consts[i]); } -- 2.11.4.GIT