eolian: fix coverity defects
authorDaniel Kolesa <d.kolesa@samsung.com>
Tue, 22 Jul 2014 23:47:26 +0000 (00:47 +0100)
committerDaniel Kolesa <d.kolesa@samsung.com>
Tue, 22 Jul 2014 23:48:27 +0000 (00:48 +0100)
Fixes CID 1228630 and 1228631.

src/lib/eolian/eo_lexer.c

index 995fce1..2b61017 100644 (file)
@@ -303,7 +303,7 @@ skip:
    eina_strbuf_append_char(ls->buff, ls->current);
    next_char(ls);
    tok->value = eina_stringshare_add_length(eina_strbuf_string_get(ls->buff) + 1,
-                                            eina_strbuf_length_get(ls->buff) - 2);
+                              (unsigned int)eina_strbuf_length_get(ls->buff) - 2);
 }
 
 static int
@@ -443,7 +443,7 @@ read_number(Eo_Lexer *ls, Eo_Token *tok)
         if (ls->current == '.') is_float = EINA_TRUE;
         next_char(ls);
      }
-   if (ls->current == 'e' || ls->current == 'e')
+   if (ls->current == 'e' || ls->current == 'E')
      {
         is_float = EINA_TRUE;
          write_exp(ls);