Skip to content

Commit 58e4b7e

Browse files
committed
Make cast from double->bool explicit
1 parent a269af3 commit 58e4b7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib_json/json_value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ bool Value::asBool() const {
718718
case uintValue:
719719
return value_.uint_ ? true : false;
720720
case realValue:
721-
return value_.real_ ? true : false;
721+
return static_cast<bool>(value_.real_) ? true : false;
722722
default:
723723
break;
724724
}

0 commit comments

Comments
 (0)