diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-03-25 18:05:05 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-03-25 18:05:05 -0300 |
commit | 3e9c6a8a247ef4c4c643dd951120409833221f86 (patch) | |
tree | fce26415299abd4096e2fb37708f55ce749152cf | |
parent | 1f4e2ba7b29628dad7d98030c8432ca7265a85c9 (diff) | |
download | lua-3e9c6a8a247ef4c4c643dd951120409833221f86.tar.gz lua-3e9c6a8a247ef4c4c643dd951120409833221f86.tar.bz2 lua-3e9c6a8a247ef4c4c643dd951120409833221f86.zip |
details
-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 | ||