This commit is contained in:
Roberto Ierusalimschy
2004-12-03 18:44:19 -02:00
parent a5330b77f3
commit 8b239eeba1
2 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lparser.c,v 2.7 2004/11/19 16:59:08 roberto Exp roberto $
** $Id: lparser.c,v 2.8 2004/12/03 20:35:33 roberto Exp roberto $
** Lua Parser
** See Copyright Notice in lua.h
*/
@@ -133,7 +133,7 @@ static void check_match (LexState *ls, int what, int who, int where) {
static TString *str_checkname (LexState *ls) {
TString *ts;
check_condition(ls, (ls->t.token == TK_NAME), "<name> expected");
if (ls->t.token != TK_NAME) error_expected(ls, TK_NAME);
ts = ls->t.seminfo.ts;
next(ls);
return ts;