q66 pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=9b167d953c34cdbc6baf0f04c630d2475244fbb0

commit 9b167d953c34cdbc6baf0f04c630d2475244fbb0
Author: Daniel Kolesa <d.kol...@osg.samsung.com>
Date:   Fri May 1 11:57:50 2015 +0100

    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, "<eof>", 6);
      }
-   if (token < START_CUSTOM)
+   else if (token < START_CUSTOM)
      {
         assert((unsigned char)token == token);
         if (iscntrl(token))

-- 


Reply via email to