diff --git a/src/lib_json/json_value.cpp b/src/lib_json/json_value.cpp index 6752fa2..b6f41de 100644 --- a/src/lib_json/json_value.cpp +++ b/src/lib_json/json_value.cpp @@ -854,7 +854,7 @@ bool Value::asBool() const { return value_.uint_ ? true : false; case realValue: // According to JavaScript language zero or NaN is regarded as false - return std::fpclassify(value_.real_) != FP_ZERO && std::fpclassify(value_.real_) != FP_NAN + return std::fpclassify(value_.real_) != FP_ZERO && std::fpclassify(value_.real_) != FP_NAN; default: break; }