diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/json.cpp | 2 |
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; |