Skip to content

Commit

Permalink
Fix "logical not is only applied to the left hand side of comparison"…
Browse files Browse the repository at this point in the history
… error
  • Loading branch information
Waguramu committed Dec 5, 2024
1 parent e590891 commit a628e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/core/src/visualization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ void FeatureLayerVisualization::addFeature(

try {
auto result = boundEvalFun.eval_(*attrMask);
if ((result.isa(simfil::ValueType::Bool) && !result.as<simfil::ValueType::Bool>()) ||
if ((result.isa(simfil::ValueType::Bool) && !(result.as<simfil::ValueType::Bool>())) ||
result.isa(simfil::ValueType::Undef) || result.isa(simfil::ValueType::Null)) {
return true;
}
Expand Down

0 comments on commit a628e17

Please sign in to comment.