]> granicus.if.org Git - graphviz/commitdiff
smyrma: remove unnecessary 'gint' cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Mar 2022 19:50:16 +0000 (12:50 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Mar 2022 18:21:10 +0000 (11:21 -0700)
`G_PRIORITY_DEFAULT` is already a `gint` (typedef for `int`).

cmd/smyrna/viewport.c

index d173d8d599526c43f893e47e5781c7b5045f3bbd..ad509a4cd0461f238eda8a97f2d19e7c3ac14dc0 100644 (file)
@@ -388,8 +388,7 @@ void init_viewport(ViewInfo * view)
     view->active_frame = 0;
     view->total_frames = 1500;
     /*add a call back to the main() */
-    g_timeout_add_full((gint) G_PRIORITY_DEFAULT, 100u,
-                      gl_main_expose, NULL, NULL);
+    g_timeout_add_full(G_PRIORITY_DEFAULT, 100u, gl_main_expose, NULL, NULL);
     view->cameras = '\0';;
     view->camera_count = 0;
     view->active_camera = -1;