diff options
Diffstat (limited to 'llex.c')
-rw-r--r-- | llex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: llex.c,v 1.75 2001/01/15 18:07:56 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.76 2001/01/19 13:20:30 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 | */ |
@@ -55,7 +55,7 @@ void luaX_checklimit (LexState *ls, int val, int limit, const char *msg) { | |||
55 | 55 | ||
56 | void luaX_syntaxerror (LexState *ls, const char *s, const char *token) { | 56 | void luaX_syntaxerror (LexState *ls, const char *s, const char *token) { |
57 | char buff[MAXSRC]; | 57 | char buff[MAXSRC]; |
58 | luaO_chunkid(buff, ls->source->str, sizeof(buff)); | 58 | luaO_chunkid(buff, getstr(ls->source), sizeof(buff)); |
59 | luaO_verror(ls->L, "%.99s;\n last token read: `%.30s' at line %d in %.80s", | 59 | luaO_verror(ls->L, "%.99s;\n last token read: `%.30s' at line %d in %.80s", |
60 | s, token, ls->linenumber, buff); | 60 | s, token, ls->linenumber, buff); |
61 | } | 61 | } |