]> granicus.if.org Git - graphviz/commitdiff
GD plugin gd_loadimage_cairo: realign some types with their values
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 20 Aug 2022 04:15:49 +0000 (21:15 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 21 Aug 2022 17:53:19 +0000 (10:53 -0700)
Squashes 4 -Wsign-conversion warnings that were occurring from mixing signed and
unsigned ints.

plugin/gd/gvloadimage_gd.c

index 544da0cedff72ed486d6fb7d555ded9514d0169c..13c66731feb107ebf2ed28588f0ced794082ffa1 100644 (file)
@@ -108,7 +108,8 @@ static void gd_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, bool filled
     (void)filled;
 
     cairo_t *cr = job->context; /* target context */
-    unsigned int x, y, stride, width, height, px;
+    int x, y, stride, width, height;
+    unsigned px;
     unsigned char *data;
     cairo_surface_t *surface;    /* source surface */
     gdImagePtr im;