From 279683d880ed2c65ed144cf083a8ad68bd239229 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 15 May 2022 21:31:25 -0700 Subject: [PATCH] gvpr: squash -Wconversion warning from 'read' return This call is asked to read an `int` length of bytes, so cannot return more than `INT_MAX`. --- lib/gvpr/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gvpr/compile.c b/lib/gvpr/compile.c index 24083bae4..a7fe27bf5 100644 --- a/lib/gvpr/compile.c +++ b/lib/gvpr/compile.c @@ -63,7 +63,7 @@ static Sflong_t ptr2int(const void *p) { static int iofread(void *chan, char *buf, int bufsize) { - return read(sffileno(chan), buf, bufsize); + return (int)read(sffileno(chan), buf, bufsize); } static int ioflush(void *chan) -- 2.40.0