From: Matthew Fernandez Date: Sat, 20 Aug 2022 04:15:49 +0000 (-0700) Subject: GD plugin gd_loadimage_cairo: realign some types with their values X-Git-Tag: 6.0.1~34^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acc80788ee6163d2811a2819fb442a4a68d3c3e1;p=graphviz GD plugin gd_loadimage_cairo: realign some types with their values Squashes 4 -Wsign-conversion warnings that were occurring from mixing signed and unsigned ints. --- diff --git a/plugin/gd/gvloadimage_gd.c b/plugin/gd/gvloadimage_gd.c index 544da0ced..13c66731f 100644 --- a/plugin/gd/gvloadimage_gd.c +++ b/plugin/gd/gvloadimage_gd.c @@ -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;