mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-08 17:30:13 +02:00
commit
cadb6dd9a6
@ -153,7 +153,7 @@ JSONCPP_STRING valueToString(double value, bool useSpecialFloats, unsigned int p
|
|||||||
fixNumericLocale(buffer, buffer + len);
|
fixNumericLocale(buffer, buffer + len);
|
||||||
|
|
||||||
// try to ensure we preserve the fact that this was given to us as a double on input
|
// try to ensure we preserve the fact that this was given to us as a double on input
|
||||||
if (!strstr(buffer, ".") && !strstr(buffer, "e")) {
|
if (!strchr(buffer, '.') && !strchr(buffer, 'e')) {
|
||||||
strcat(buffer, ".0");
|
strcat(buffer, ".0");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user