mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-12 02:36:37 +02:00
fix compile problem
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user