From c65458ca060116e9109f9cb35d98641a79cc4e07 Mon Sep 17 00:00:00 2001 From: def Date: Tue, 20 Jan 2015 13:46:26 +0100 Subject: [PATCH] Fix compilation on MSVC (by coffee) (fixes #138) --- src/engine/external/json-parser/json.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/external/json-parser/json.cpp b/src/engine/external/json-parser/json.cpp index 2c15e903b..28da9dd80 100644 --- a/src/engine/external/json-parser/json.cpp +++ b/src/engine/external/json-parser/json.cpp @@ -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)