diff options
| -rw-r--r-- | llex.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: llex.c,v 1.88 2001/06/20 21:07:57 roberto Exp roberto $ | 2 | ** $Id: llex.c,v 1.89 2001/07/22 00:59:36 roberto Exp $ |
| 3 | ** Lexical Analyzer | 3 | ** Lexical Analyzer |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -78,7 +78,8 @@ void luaX_error (LexState *ls, const l_char *s, int token) { | |||
| 78 | 78 | ||
| 79 | 79 | ||
| 80 | void luaX_token2str (int token, l_char *s) { | 80 | void luaX_token2str (int token, l_char *s) { |
| 81 | if (token < 256) { | 81 | if (token < FIRST_RESERVED) { |
| 82 | lua_assert(token == (l_char)token); | ||
| 82 | s[0] = (l_char)token; | 83 | s[0] = (l_char)token; |
| 83 | s[1] = l_c('\0'); | 84 | s[1] = l_c('\0'); |
| 84 | } | 85 | } |
