diff options
author | Hans Goudey <h.goudey@me.com> | 2022-02-15 22:57:17 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-02-15 22:57:17 +0300 |
commit | cbdd57864049f6f300494d56b623934a4134fa2b (patch) | |
tree | 7ef11a81b46ec0ced4739b32609ad07cc30484b3 /source | |
parent | e272bdc1713446aec3102fc75b0d73ab432c17d7 (diff) |
Fix: Build error in debug build
Error in a9f023e226389461b1140
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenlib/BLI_math_vec_types.hh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenlib/BLI_math_vec_types.hh b/source/blender/blenlib/BLI_math_vec_types.hh index ad885bde27d..8e897870098 100644 --- a/source/blender/blenlib/BLI_math_vec_types.hh +++ b/source/blender/blenlib/BLI_math_vec_types.hh @@ -349,7 +349,7 @@ template<typename T, int Size> struct vec_base : public vec_struct_base<T, Size> friend vec_base operator/(const vec_base &a, const vec_base &b) { - BLI_assert(!math::is_any_zero()); + BLI_assert(!math::is_any_zero(b)); BLI_VEC_OP_IMPL(ret, i, ret[i] = a[i] / b[i]); } @@ -361,7 +361,7 @@ template<typename T, int Size> struct vec_base : public vec_struct_base<T, Size> friend vec_base operator/(T a, const vec_base &b) { - BLI_assert(!math::is_any_zero()); + BLI_assert(!math::is_any_zero(b)); BLI_VEC_OP_IMPL(ret, i, ret[i] = a / b[i]); } @@ -373,7 +373,7 @@ template<typename T, int Size> struct vec_base : public vec_struct_base<T, Size> vec_base &operator/=(const vec_base &b) { - BLI_assert(!b != T(0)); + BLI_assert(b != T(0)); BLI_VEC_OP_IMPL_SELF(i, (*this)[i] /= b[i]); } @@ -505,7 +505,7 @@ template<typename T, int Size> struct vec_base : public vec_struct_base<T, Size> BLI_INT_OP(T) friend vec_base operator%(const vec_base &a, const vec_base &b) { - BLI_assert(!math::is_any_zero()); + BLI_assert(!math::is_any_zero(b)); BLI_VEC_OP_IMPL(ret, i, ret[i] = a[i] % b[i]); } |