From 9b167d953c34cdbc6baf0f04c630d2475244fbb0 Mon Sep 17 00:00:00 2001 From: Daniel Kolesa Date: Fri, 1 May 2015 11:57:50 +0100 Subject: [PATCH] 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 --- src/lib/eolian/eo_lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/eolian/eo_lexer.c b/src/lib/eolian/eo_lexer.c index 6e4057f..06f11f4 100644 --- a/src/lib/eolian/eo_lexer.c +++ b/src/lib/eolian/eo_lexer.c @@ -788,7 +788,7 @@ eo_lexer_token_to_str(int token, char *buf) { memcpy(buf, "", 6); } - if (token < START_CUSTOM) + else if (token < START_CUSTOM) { assert((unsigned char)token == token); if (iscntrl(token)) -- 2.7.4