Browse Source

PR#394: fix breakage with VS build.

tags/json-c-0.14-20200419
Eric Haszlakiewicz 7 years ago
parent
commit
c652b6ad29
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      json_object.c

+ 1
- 1
json_object.c View File

@@ -809,6 +809,7 @@ static int json_object_double_to_json_string_format(struct json_object* jso,
else else
{ {
const char *std_format = "%.17g"; const char *std_format = "%.17g";
int format_drops_decimals = 0;


if (!format) if (!format)
{ {
@@ -833,7 +834,6 @@ static int json_object_double_to_json_string_format(struct json_object* jso,
else else
p = strchr(buf, '.'); p = strchr(buf, '.');


int format_drops_decimals = 0;
if (format == std_format || strstr(format, ".0f") == NULL) if (format == std_format || strstr(format, ".0f") == NULL)
format_drops_decimals = 1; format_drops_decimals = 1;




Loading…
Cancel
Save