mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-13 10:22:55 +01:00
fix compile problem
This commit is contained in:
parent
b7feb2d493
commit
7c7ccbf934
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user