Fix bitwise operation used on boolean in Mantaflow

This commit is contained in:
Sergey Sharybin 2023-04-18 11:19:44 +02:00 committed by Sergey Sharybin
parent 8365bce958
commit 33e5cd4e2f
1 changed files with 1 additions and 1 deletions

View File

@ -572,7 +572,7 @@ template<class T> inline bool cmpMinMax(T &minv, T &maxv, const T &val)
}
template<> inline bool cmpMinMax<Vec3>(Vec3 &minv, Vec3 &maxv, const Vec3 &val)
{
return (cmpMinMax(minv.x, maxv.x, val.x) | cmpMinMax(minv.y, maxv.y, val.y) |
return (cmpMinMax(minv.x, maxv.x, val.x) || cmpMinMax(minv.y, maxv.y, val.y) ||
cmpMinMax(minv.z, maxv.z, val.z));
}