]> granicus.if.org Git - graphviz/commitdiff
xlib plugin init_window: squash -Wsign-conversion warnings for job
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 30 Mar 2022 15:28:37 +0000 (08:28 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 2 Apr 2022 19:55:48 +0000 (12:55 -0700)
plugin/xlib/gvdevice_xlib.c

index 0098be6cde1a65c039b3645116b356b5ddd12895..52c9adca614d4b9f4ec5da3dfc6aff828d65604f 100644 (file)
@@ -346,9 +346,9 @@ static void init_window(GVJ_t *job, Display *dpy, int scr)
     normalhints->x = 0;
     normalhints->y = 0;
     assert(job->width <= (unsigned)INT_MAX && "out of range width");
-    normalhints->width = job->width;
+    normalhints->width = (int)job->width;
     assert(job->height <= (unsigned)INT_MAX && "out of range height");
-    normalhints->height = job->height;
+    normalhints->height = (int)job->height;
 
     classhint = XAllocClassHint();
     classhint->res_name = "graphviz";