PR#394: fix breakage with VS build.

This commit is contained in:
Eric Haszlakiewicz
2017-12-24 14:42:58 -05:00
parent d5da847f51
commit c652b6ad29

View File

@@ -809,6 +809,7 @@ static int json_object_double_to_json_string_format(struct json_object* jso,
else
{
const char *std_format = "%.17g";
int format_drops_decimals = 0;
if (!format)
{
@@ -833,7 +834,6 @@ static int json_object_double_to_json_string_format(struct json_object* jso,
else
p = strchr(buf, '.');
int format_drops_decimals = 0;
if (format == std_format || strstr(format, ".0f") == NULL)
format_drops_decimals = 1;