]> granicus.if.org Git - graphviz/commitdiff
squash some -Wfloat-conversion warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 18 Apr 2021 23:50:38 +0000 (16:50 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Apr 2021 18:58:20 +0000 (11:58 -0700)
cmd/smyrna/glmotion.c

index fbec6b4d1f038dc99cef500677911b4eac441557..0a7f02afc806de2ef29adfe8245416e4cdf70772 100644 (file)
@@ -45,9 +45,9 @@ static void graph_zoom(float real_zoom)
 void glmotion_zoom_inc(int zoomin)
 {
     if (zoomin)                        /*zooming in , zoom value should be decreased */
-       graph_zoom(view->zoom - view->zoom * 0.25);
+       graph_zoom(view->zoom - view->zoom * 0.25f);
     else
-       graph_zoom(view->zoom + view->zoom * 0.25);     /*zoom out */
+       graph_zoom(view->zoom + view->zoom * 0.25f);    /*zoom out */
     glexpose();
 
 }