mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-06-08 17:30:13 +02: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;
|
return value_.uint_ ? true : false;
|
||||||
case realValue:
|
case realValue:
|
||||||
// According to JavaScript language zero or NaN is regarded as false
|
// 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:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user