]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove use of 'guint' cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Mar 2022 19:48:28 +0000 (12:48 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 27 Mar 2022 18:21:10 +0000 (11:21 -0700)
`guint` is just a Glib typedef for `unsigned int`. So we can write this simpler.

cmd/smyrna/viewport.c

index 065b33dad1f5c052001a7fa87eb538959fc7441a..d173d8d599526c43f893e47e5781c7b5045f3bbd 100644 (file)
@@ -388,7 +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, (guint) 100,
+    g_timeout_add_full((gint) G_PRIORITY_DEFAULT, 100u,
                       gl_main_expose, NULL, NULL);
     view->cameras = '\0';;
     view->camera_count = 0;