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

index 0d39a1e807caed6ba78ce0f3cea2ec9b70f3ac4e..09a128f4c2bacfa671873b22a73fb6024e274cba 100644 (file)
@@ -32,7 +32,7 @@ static void graph_zoom(float real_zoom)
     if (real_zoom < view->Topview->fitin_zoom * MAX_ZOOM)
                real_zoom = (float) view->Topview->fitin_zoom * MAX_ZOOM;
     if (real_zoom > view->Topview->fitin_zoom * MIN_ZOOM)
-               real_zoom = (float) view->Topview->fitin_zoom * MIN_ZOOM;
+               real_zoom = view->Topview->fitin_zoom * MIN_ZOOM;
     if (view->active_camera == -1)
                view->zoom = real_zoom;
     else
index 9517f934d001131b72477ced383b520ee5b805d0..abb4436da319b7ef699d099c7dd744cc403fe772 100644 (file)
@@ -71,7 +71,7 @@ typedef struct _ArcBall_t ArcBall_t;
 #define GLOBAL_Z_OFFSET                        0.001
 
 #define MAX_ZOOM       500
-#define MIN_ZOOM       0.005
+#define MIN_ZOOM       0.005f
 #define ZOOM_STEPS     100
 
 #define ZOOM_STEP      0.5