History

Lua 3.2.1

Lua Team committed 26 years ago

Commit 10e87461 parent ee14b802 files · +5 −4Browse files

Unified · Split

2 files
  1. include/lua.h +2 −2
  2. src/lparser.c +3 −2
include/lua.h+2−2
@@ -1,5 +1,5 @@
11 /*
2−** $Id: lua.h,v 1.32 1999/05/11 20:29:19 roberto Exp $
2+** $Id: lua.h,v 1.32a 1999/05/11 20:29:19 roberto Exp $
33 ** Lua - An Extensible Extension Language
44 ** TeCGraf: Grupo de Tecnologia em Computacao Grafica, PUC-Rio, Brazil
55 ** e-mail: lua@tecgraf.puc-rio.br
@@ -11,7 +11,7 @@ · 5 unmodified lines
1111 #ifndef lua_h
1212 #define lua_h
1313
14−#define LUA_VERSION "Lua 3.2"
14+#define LUA_VERSION "Lua 3.2.1"
1515 #define LUA_COPYRIGHT "Copyright (C) 1994-1999 TeCGraf, PUC-Rio"
1616 #define LUA_AUTHORS "W. Celes, R. Ierusalimschy & L. H. de Figueiredo"
1717
src/lparser.c+3−2
@@ -1,5 +1,5 @@
11 /*
2−** $Id: lparser.c,v 1.37 1999/06/17 17:04:03 roberto Exp $
2+** $Id: lparser.c,v 1.37a 1999/06/17 17:04:03 roberto Exp $
33 ** LL(1) Parser and code generator for Lua
44 ** See Copyright Notice in lua.h
55 */
@@ -665,7 +665,8 @@ static int checkname (LexState *ls) { · 659 unmodified lines
665665
666666
667667 static TaggedString *str_checkname (LexState *ls) {
668− return tsvalue(&ls->fs->f->consts[checkname(ls)]);
668+ int i = checkname(ls); /* this call may realloc `f->consts' */
669+ return tsvalue(&ls->fs->f->consts[i]);
669670 }
670671
671672