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:
parent
a74000a65c
commit
9b167d953c
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue