History

Lua 3.2.1

Lua Team committed 26 years ago

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

Showing the changes to src/lparser.c (1 of 2 files). Show all

Unified · Split

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

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t