mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-21 15:51:42 +02:00
apply the C++11 style change in .clang-format
This commit is contained in:

committed by
Hans Johnson

parent
756a08fbbd
commit
2b593a9da8
@@ -130,8 +130,8 @@ String valueToString(double value,
|
||||
// that always has a decimal point because JSON doesn't distinguish the
|
||||
// concepts of reals and integers.
|
||||
if (!isfinite(value)) {
|
||||
static const char* const reps[2][3] = { { "NaN", "-Infinity", "Infinity" },
|
||||
{ "null", "-1e+9999", "1e+9999" } };
|
||||
static const char* const reps[2][3] = {{"NaN", "-Infinity", "Infinity"},
|
||||
{"null", "-1e+9999", "1e+9999"}};
|
||||
return reps[useSpecialFloats ? 0 : 1]
|
||||
[isnan(value) ? 0 : (value < 0) ? 1 : 2];
|
||||
}
|
||||
|
Reference in New Issue
Block a user