eolian: fix float parsing with locales with ',' decpoint

This commit is contained in:
Daniel Kolesa 2017-09-01 16:07:45 +02:00
parent 0b5c4e5c25
commit 0af3254020
2 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@ import efl_gfx_types;
const Efl.Gfx.Size.Hint.Expand: double = 1.0;
[[Use with $Efl.Gfx.Size.Hint.weight.]]
const Efl.Gfx.Size.Hint.Fill: int = -1.0;
const Efl.Gfx.Size.Hint.Fill: double = -1.0;
[[Special value for $Efl.Gfx.Size.Hint.align.]]
interface Efl.Gfx.Size.Hint

View File

@ -693,6 +693,7 @@ write_val_with_decpoint(Eo_Lexer *ls, Eo_Token *tok, int type)
tok->value.d = strtod(eina_strbuf_string_get(ls->buff), &end);
if (end && end[0])
eo_lexer_lex_error(ls, "malformed number", TOK_NUMBER);
tok->kw = type;
}
static void