From: Matthew Fernandez Date: Wed, 16 Feb 2022 10:07:47 +0000 (+1100) Subject: neatogen: [nfc] brace some single-line if blocks X-Git-Tag: 3.0.0~26^2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7918e9457b9b7caaf4a63dfb741a18431c55d499;p=graphviz neatogen: [nfc] brace some single-line if blocks --- diff --git a/lib/neatogen/matrix_ops.c b/lib/neatogen/matrix_ops.c index 420858a1e..0ad5357b2 100644 --- a/lib/neatogen/matrix_ops.c +++ b/lib/neatogen/matrix_ops.c @@ -624,8 +624,9 @@ void sqrt_vecf(int n, float *source, float *target) int i; float v; for (i = 0; i < n; i++) { - if ((v = source[i]) >= 0.0) + if ((v = source[i]) >= 0.0) { target[i] = (float) sqrt(v); + } } } @@ -634,7 +635,8 @@ void invert_sqrt_vec(int n, float *vec) int i; float v; for (i = 0; i < n; i++) { - if ((v = vec[i]) > 0.0) + if ((v = vec[i]) > 0.0) { vec[i] = 1.0f / (float) sqrt(v); + } } }