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.32 1999/03/05 20:45:01 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.33 1999/03/11 18:59:19 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 | */ |
@@ -71,7 +71,7 @@ void luaX_token2str (int token, char *s) { | |||
71 | 71 | ||
72 | static void luaX_invalidchar (LexState *ls, int c) { | 72 | static void luaX_invalidchar (LexState *ls, int c) { |
73 | char buff[10]; | 73 | char buff[10]; |
74 | sprintf(buff, "0x%X", c); | 74 | sprintf(buff, "0x%02X", c); |
75 | luaX_syntaxerror(ls, "invalid control char", buff); | 75 | luaX_syntaxerror(ls, "invalid control char", buff); |
76 | } | 76 | } |
77 | 77 | ||