aboutsummaryrefslogtreecommitdiff
path: root/common/json.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/json.cpp')
-rw-r--r--common/json.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/json.cpp b/common/json.cpp
index f7a54d23b2..792d1967e9 100644
--- a/common/json.cpp
+++ b/common/json.cpp
@@ -980,7 +980,7 @@ String JSONValue::stringifyImpl(size_t const indentDepth) const {
ret_string = "null";
else {
char str[80];
- sprintf(str, "%lg", _numberValue);
+ sprintf(str, "%g", _numberValue);
ret_string = str;
}
break;