]> granicus.if.org Git - graphviz/commitdiff
use a float literal to squash a -Wfloat-conversion warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 2 May 2021 03:14:37 +0000 (20:14 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 16 May 2021 16:40:28 +0000 (09:40 -0700)
lib/neatogen/quad_prog_vpsc.c

index 9f7f6944b166510693cbbe8b7783f6853b8d49a7..fd2a7f022b6f84a15b8d3d1228fbb5d2c98cbd53 100644 (file)
@@ -390,7 +390,7 @@ void generateNonoverlapConstraints(CMajEnvVPSC * e,
        /* grow a bit in the x dimension, so that if overlap is resolved
         * horizontally then it won't be considered overlapping vertically
         */
-       nsizeScale *= 1.0001;
+       nsizeScale *= 1.0001f;
     }
     for (i = 0; i < n; i++) {
        bb[i].LL.x =