eolian: fix lexer assertion failure

The function was missing an "else", so a wrong branch was always
executed with errors at EOF. This fixes that.
@fix
This commit is contained in:
Daniel Kolesa 2015-05-01 11:57:50 +01:00
parent a74000a65c
commit 9b167d953c
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ eo_lexer_token_to_str(int token, char *buf)
{
memcpy(buf, "<eof>", 6);
}
if (token < START_CUSTOM)
else if (token < START_CUSTOM)
{
assert((unsigned char)token == token);
if (iscntrl(token))