File tree 2 files changed +4
-5
lines changed 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -853,9 +853,9 @@ bool Value::asBool() const {
853
853
case uintValue:
854
854
return value_.uint_ ? true : false ;
855
855
case realValue: {
856
- // According to JavaScript language zero or NaN is regarded as false
857
- const auto value_classification = std::fpclassify (value_.real_ );
858
- return value_classification != FP_ZERO && value_classification != FP_NAN;
856
+ // According to JavaScript language zero or NaN is regarded as false
857
+ const auto value_classification = std::fpclassify (value_.real_ );
858
+ return value_classification != FP_ZERO && value_classification != FP_NAN;
859
859
}
860
860
default :
861
861
break ;
Original file line number Diff line number Diff line change 16
16
#include < cstring>
17
17
#include < iomanip>
18
18
#include < iostream>
19
- #include < sstream>
20
19
#include < json/config.h>
21
20
#include < json/json.h>
22
21
#include < limits>
@@ -1649,7 +1648,7 @@ JSONTEST_FIXTURE(ValueTest, StaticString) {
1649
1648
1650
1649
JSONTEST_FIXTURE (ValueTest, WideString) {
1651
1650
// https://github.com/open-source-parsers/jsoncpp/issues/756
1652
- const std::string uni = u8" 式,进" ; // "\u5f0f\uff0c\u8fdb"
1651
+ const std::string uni = u8" 式,进" ; // "\u5f0f\uff0c\u8fdb"
1653
1652
std::string styled;
1654
1653
{
1655
1654
Json::Value v;
You can’t perform that action at this time.
0 commit comments