summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Haszlakiewicz <erh+git@nimenees.com>2012-04-29 11:15:56 -0500
committerEric Haszlakiewicz <erh+git@nimenees.com>2012-04-29 11:15:56 -0500
commitf22de2c11287994f01e1b38aebee0b28f4e23b83 (patch)
tree64fa32773c21c2f335f342341877447a5e46256b
parent86bf051fd21de7042e6d16ac8f39008c64a2bdd1 (diff)
parent0cc1db6459035fd071371281daff030e5a0e9b8e (diff)
downloadjson-c-f22de2c11287994f01e1b38aebee0b28f4e23b83.tar.gz
Merge branch 'master' into json-c-0.10
-rw-r--r--json_object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json_object.c b/json_object.c
index 825630f..5a35938 100644
--- a/json_object.c
+++ b/json_object.c
@@ -463,7 +463,7 @@ static int json_object_double_to_json_string(struct json_object* jso,
int level,
int flags)
{
- return sprintbuf(pb, "%lf", jso->o.c_double);
+ return sprintbuf(pb, "%f", jso->o.c_double);
}
struct json_object* json_object_new_double(double d)