Fixing ecma_zt_string_to_number for '-0' string.

This commit is contained in:
Ruben Ayrapetyan 2014-10-24 13:27:09 +04:00
parent bf9ef27e2f
commit 904be9ece6

View File

@ -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;