]> granicus.if.org Git - graphviz/commitdiff
neatogen: [nfc] remove a no-op cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 15 Feb 2022 08:24:12 +0000 (19:24 +1100)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 16 Feb 2022 10:08:58 +0000 (21:08 +1100)
lib/neatogen/matrix_ops.c

index 417609b1dbfff1acad17514373cd541f1ebf74f8..60db51d95116a901d3cb8f21d488762dd01928df 100644 (file)
@@ -543,7 +543,7 @@ void vectors_scalar_multf(int n, float *vector, float alpha, float *result)
 {
     int i;
     for (i = 0; i < n; i++) {
-       result[i] = (float) vector[i] * alpha;
+       result[i] = vector[i] * alpha;
     }
 }