From: Matthew Fernandez Date: Tue, 19 Jul 2022 02:59:46 +0000 (-0700) Subject: GD plugin: remove unnecessary casts X-Git-Tag: 5.0.1~30^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88e9dda13542cf0881fa550778302eb5d0aa3e2b;p=graphviz GD plugin: remove unnecessary casts --- diff --git a/plugin/gd/gvloadimage_gd.c b/plugin/gd/gvloadimage_gd.c index 5afba5232..8b0ce6506 100644 --- a/plugin/gd/gvloadimage_gd.c +++ b/plugin/gd/gvloadimage_gd.c @@ -90,7 +90,7 @@ static gdImagePtr gd_rotateimage(gdImagePtr im, int rotation) static void gd_loadimage_gd(GVJ_t * job, usershape_t *us, boxf b, bool filled) { - gdImagePtr im2, im = (gdImagePtr) job->context; + gdImagePtr im2, im = job->context; if ((im2 = gd_loadimage(job, us))) { if (job->rotation) @@ -103,7 +103,7 @@ static void gd_loadimage_gd(GVJ_t * job, usershape_t *us, boxf b, bool filled) #ifdef HAVE_PANGOCAIRO static void gd_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, bool filled) { - cairo_t *cr = (cairo_t *) job->context; /* target context */ + cairo_t *cr = job->context; /* target context */ unsigned int x, y, stride, width, height, px; unsigned char *data; cairo_surface_t *surface; /* source surface */