From fc749d9d255e9bd89a5cc1436e899cf3ecf36dd7 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 21 Apr 2023 09:13:09 +1000 Subject: [PATCH] Cleanup: replace binary '&' with '&&' check As the intention is to check both statements are true, avoid bitwise operations on boolean results. --- source/blender/blenlib/intern/math_matrix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/blenlib/intern/math_matrix.c b/source/blender/blenlib/intern/math_matrix.c index aa731c54a3e..1b1ae9a8a53 100644 --- a/source/blender/blenlib/intern/math_matrix.c +++ b/source/blender/blenlib/intern/math_matrix.c @@ -2728,7 +2728,7 @@ void svd_m4(float U[4][4], float s[4], float V[4][4], float A_[4][4]) e[k + 1] += 1.0f; } e[k] = -e[k]; - if ((k + 1 < m) & (e[k] != 0.0f)) { + if ((k + 1 < m) && (e[k] != 0.0f)) { float invek1; /* Apply the transformation. */ @@ -2812,7 +2812,7 @@ void svd_m4(float U[4][4], float s[4], float V[4][4], float A_[4][4]) /* If required, generate V. */ for (k = n - 1; k >= 0; k--) { - if ((k < nrt) & (e[k] != 0.0f)) { + if ((k < nrt) && (e[k] != 0.0f)) { for (j = k + 1; j < nu; j++) { float t = 0; for (i = k + 1; i < n; i++) {