Fix compilation on MSVC (by coffee) (fixes #138)

This commit is contained in:
def 2015-01-20 13:46:26 +01:00
parent 3aa4a613b6
commit c65458ca06

View file

@ -635,7 +635,7 @@ json_value * json_parse_ex (json_settings * settings, const json_char * json, ch
goto e_failed;
}
top->u.dbl += ((double) num_fraction) / (pow (10, num_digits));
top->u.dbl += ((double) num_fraction) / (pow (10.0, num_digits));
}
if (b == 'e' || b == 'E')
@ -661,7 +661,7 @@ json_value * json_parse_ex (json_settings * settings, const json_char * json, ch
goto e_failed;
}
top->u.dbl *= pow (10, flags & flag_num_e_negative ? - num_e : num_e);
top->u.dbl *= pow (10.0, flags & flag_num_e_negative ? - num_e : num_e);
}
if (flags & flag_num_negative)