This commit is contained in:
Roberto Ierusalimschy 2002-10-23 16:08:13 -03:00
parent 92a2ef9dca
commit a2b353e044
1 changed files with 3 additions and 3 deletions

6
llex.c
View File

@ -1,5 +1,5 @@
/*
** $Id: llex.c,v 1.114 2002/10/09 13:00:08 roberto Exp roberto $
** $Id: llex.c,v 1.115 2002/10/22 16:45:52 roberto Exp roberto $
** Lexical Analyzer
** See Copyright Notice in lua.h
*/
@ -70,11 +70,11 @@ void luaX_syntaxerror (LexState *ls, const char *msg) {
const char *lasttoken;
switch (ls->t.token) {
case TK_NAME:
lasttoken = luaO_pushfstring(ls->L, "%s", getstr(ls->t.seminfo.ts));
lasttoken = getstr(ls->t.seminfo.ts);
break;
case TK_STRING:
case TK_NUMBER:
lasttoken = luaO_pushfstring(ls->L, "%s", luaZ_buffer(ls->buff));
lasttoken = luaZ_buffer(ls->buff);
break;
default:
lasttoken = luaX_token2str(ls, ls->t.token);