]> granicus.if.org Git - graphviz/commitdiff
Xlib plugin: squash some -Wsign-conversion warnings
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Mar 2022 18:26:08 +0000 (10:26 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 6 Mar 2022 05:28:32 +0000 (21:28 -0800)
plugin/xlib/gvdevice_xlib.c

index 5758d907a78210a2dd144b75b1598377cd25f344..1ed26503feeb37f498696dac67e2983d880046e8 100644 (file)
@@ -74,8 +74,8 @@ static void handle_configure_notify(GVJ_t * job, XConfigureEvent * cev)
     if ((unsigned)cev->width > job->width ||
         (unsigned)cev->height > job->height)
         job->has_grown = true;
-    job->width = cev->width;
-    job->height = cev->height;
+    job->width = (unsigned)cev->width;
+    job->height = (unsigned)cev->height;
     job->needs_refresh = true;
 }