]> granicus.if.org Git - graphviz/commitdiff
neatogen: [nfc] brace a single-line if block
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 16 Feb 2022 10:11:17 +0000 (21:11 +1100)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 16 Feb 2022 10:11:17 +0000 (21:11 +1100)
lib/neatogen/matrix_ops.c

index e123c0184a64ae6e94872cd8c9c46e2c6dbf7af8..7a405ae59fe4a40e61d0f9d9382f07701081d876 100644 (file)
@@ -600,8 +600,9 @@ void invert_vec(int n, float *vec)
 {
     int i;
     for (i = 0; i < n; i++) {
-       if (vec[i] != 0.0)
+       if (vec[i] != 0.0) {
            vec[i] = 1.0f / vec[i];
+       }
     }
 }