File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 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 {
853853 case uintValue:
854854 return value_.uint_ ? true : false ;
855855 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;
859859 }
860860 default :
861861 break ;
Original file line number Diff line number Diff line change 1616#include < cstring>
1717#include < iomanip>
1818#include < iostream>
19- #include < sstream>
2019#include < json/config.h>
2120#include < json/json.h>
2221#include < limits>
@@ -1649,7 +1648,7 @@ JSONTEST_FIXTURE(ValueTest, StaticString) {
16491648
16501649JSONTEST_FIXTURE (ValueTest, WideString) {
16511650 // 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"
16531652 std::string styled;
16541653 {
16551654 Json::Value v;
You can’t perform that action at this time.
0 commit comments