fix compile problem

This commit is contained in:
cmlchen 2019-06-21 10:23:20 +08:00 committed by Jordan Bayles
parent b7feb2d493
commit 7c7ccbf934

View File

@ -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;
}