From 8b239eeba13877955b976ccd119ada038b67fa59 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 3 Dec 2004 18:44:19 -0200 Subject: details --- lparser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lparser.c') diff --git a/lparser.c b/lparser.c index e35091e9..17a89fd3 100644 --- a/lparser.c +++ b/lparser.c @@ -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), " expected"); + if (ls->t.token != TK_NAME) error_expected(ls, TK_NAME); ts = ls->t.seminfo.ts; next(ls); return ts; -- cgit v1.2.3-55-g6feb