mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix compilation on MSVC (by coffee) (fixes #138)
This commit is contained in:
parent
3aa4a613b6
commit
c65458ca06
4
src/engine/external/json-parser/json.cpp
vendored
4
src/engine/external/json-parser/json.cpp
vendored
|
@ -635,7 +635,7 @@ json_value * json_parse_ex (json_settings * settings, const json_char * json, ch
|
||||||
goto e_failed;
|
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')
|
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;
|
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)
|
if (flags & flag_num_negative)
|
||||||
|
|
Loading…
Reference in a new issue