mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Improving precision of string to number conversion in ecma_zt_string_to_number.
This commit is contained in:
parent
8e1156bd9e
commit
6ebd96f903
@ -312,7 +312,7 @@ ecma_zt_string_to_number (const ecma_char_t *str_p) /**< zero-terminated string
|
||||
e_in_lit = -e_in_lit;
|
||||
}
|
||||
|
||||
ecma_number_t m = e_in_lit_sign ? 0.1f : 10.0f;
|
||||
ecma_number_t m = e_in_lit_sign ? (ecma_number_t) 0.1 : (ecma_number_t) 10.0;
|
||||
|
||||
while (e_in_lit)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user