From 96844315f68c82c4c076055a8747cfdb90c24c0a Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Mon, 8 Nov 2021 18:33:49 -0800 Subject: [PATCH] gvrender_beziercurve: realign 'filled' parameter type This appears to have been a mistake, in that all the other `gvrender_*` functions take an `int` for the `filled` parameter. This does not appear to have caused any visible effects, as the values passed to this function always fit in a `boolean`. But the compiler complained that it thought unintended value truncation was occurring. Squashes 3 -Wconversion compiler warnings. --- lib/gvc/gvcproc.h | 2 +- lib/gvc/gvrender.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/gvc/gvcproc.h b/lib/gvc/gvcproc.h index d3ce7feab..f967438d5 100644 --- a/lib/gvc/gvcproc.h +++ b/lib/gvc/gvcproc.h @@ -104,7 +104,7 @@ void gvrender_polygon(GVJ_t* job, pointf* af, int n, int filled); void gvrender_box(GVJ_t * job, boxf BF, int filled); void gvrender_beziercurve(GVJ_t * job, pointf * AF, int n, - int arrow_at_start, int arrow_at_end, boolean filled); + int arrow_at_start, int arrow_at_end, int filled); void gvrender_polyline(GVJ_t * job, pointf * AF, int n); void gvrender_comment(GVJ_t * job, char *str); void gvrender_usershape(GVJ_t * job, char *name, pointf * AF, int n, boolean filled, char *imagescale, char *imagepos); diff --git a/lib/gvc/gvrender.c b/lib/gvc/gvrender.c index d8974eecc..0752974cc 100644 --- a/lib/gvc/gvrender.c +++ b/lib/gvc/gvrender.c @@ -606,8 +606,7 @@ void gvrender_box(GVJ_t * job, boxf B, int filled) } void gvrender_beziercurve(GVJ_t * job, pointf * af, int n, - int arrow_at_start, int arrow_at_end, - boolean filled) + int arrow_at_start, int arrow_at_end, int filled) { gvrender_engine_t *gvre = job->render.engine; -- 2.50.1