mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fixing ecma_zt_string_to_number for '-0' string.
This commit is contained in:
parent
bf9ef27e2f
commit
904be9ece6
@ -553,7 +553,7 @@ ecma_zt_string_to_number (const ecma_char_t *str_p) /**< zero-terminated string
|
||||
|
||||
if (fraction_uint64 == 0)
|
||||
{
|
||||
return ECMA_NUMBER_ZERO;
|
||||
return sign ? -ECMA_NUMBER_ZERO : ECMA_NUMBER_ZERO;
|
||||
}
|
||||
|
||||
int32_t binary_exponent = 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user