forked from enlightenment/efl
eolian: fix float parsing with locales with ',' decpoint
This commit is contained in:
parent
0b5c4e5c25
commit
0af3254020
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue