summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/lua.h4
-rw-r--r--src/lparser.c5
2 files changed, 5 insertions, 4 deletions
diff --git a/include/lua.h b/include/lua.h
index f46b2e1d..5635a550 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 c18b75cc..b0aa13f5 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]);
}