From: Matthew Fernandez Date: Thu, 28 Jul 2022 02:13:15 +0000 (-0700) Subject: gvpr readLine: squash -Wconversion warnings X-Git-Tag: 5.0.1~25^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=645d7578878977f69e6bb8461c7b21fa5cd87891;p=graphviz gvpr readLine: squash -Wconversion warnings `c` is guaranteed to fit in a char here. --- diff --git a/lib/gvpr/actions.c b/lib/gvpr/actions.c index 0839e2052..d0f201a9d 100644 --- a/lib/gvpr/actions.c +++ b/lib/gvpr/actions.c @@ -719,9 +719,9 @@ char *readLine(Expr_t * ex, int fd) } agxbinit(&tmps, 0, NULL); while ((c = sfgetc(sp)) > 0 && c != '\n') - agxbputc(&tmps, c); + agxbputc(&tmps, (char)c); if (c == '\n') - agxbputc(&tmps, c); + agxbputc(&tmps, (char)c); line = exstring(ex, agxbuse(&tmps)); agxbfree(&tmps); return line;