From 645d7578878977f69e6bb8461c7b21fa5cd87891 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 27 Jul 2022 19:13:15 -0700 Subject: [PATCH] gvpr readLine: squash -Wconversion warnings `c` is guaranteed to fit in a char here. --- lib/gvpr/actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.40.0