aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-23 16:08:13 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-10-23 16:08:13 -0300
commita2b353e0441f05c1c95793dd2ebdca0da3994e12 (patch)
treed27b8f3c98afb271070020235aa414e608cc9e14
parent92a2ef9dca6ef7a82140e0a4b11491fbdad10d96 (diff)
downloadlua-a2b353e0441f05c1c95793dd2ebdca0da3994e12.tar.gz
lua-a2b353e0441f05c1c95793dd2ebdca0da3994e12.tar.bz2
lua-a2b353e0441f05c1c95793dd2ebdca0da3994e12.zip
details
-rw-r--r--llex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/llex.c b/llex.c
index 77156bfe..7341dc1d 100644
--- a/llex.c
+++ b/llex.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: llex.c,v 1.114 2002/10/09 13:00:08 roberto Exp roberto $ 2** $Id: llex.c,v 1.115 2002/10/22 16:45:52 roberto Exp roberto $
3** Lexical Analyzer 3** Lexical Analyzer
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -70,11 +70,11 @@ void luaX_syntaxerror (LexState *ls, const char *msg) {
70 const char *lasttoken; 70 const char *lasttoken;
71 switch (ls->t.token) { 71 switch (ls->t.token) {
72 case TK_NAME: 72 case TK_NAME:
73 lasttoken = luaO_pushfstring(ls->L, "%s", getstr(ls->t.seminfo.ts)); 73 lasttoken = getstr(ls->t.seminfo.ts);
74 break; 74 break;
75 case TK_STRING: 75 case TK_STRING:
76 case TK_NUMBER: 76 case TK_NUMBER:
77 lasttoken = luaO_pushfstring(ls->L, "%s", luaZ_buffer(ls->buff)); 77 lasttoken = luaZ_buffer(ls->buff);
78 break; 78 break;
79 default: 79 default:
80 lasttoken = luaX_token2str(ls, ls->t.token); 80 lasttoken = luaX_token2str(ls, ls->t.token);