From: Eric Engestrom Date: Thu, 16 May 2019 12:08:53 +0000 (+0100) Subject: util/os_file: fix error being sign-cast back and forth X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fd5c18de883cbf56fe925fc3f3ff3031ed535377;p=mesa.git util/os_file: fix error being sign-cast back and forth Signed-off-by: Eric Engestrom Reviewed-by: Eric Anholt --- diff --git a/src/util/os_file.c b/src/util/os_file.c index 400a2a12c4d..6e78a231d67 100644 --- a/src/util/os_file.c +++ b/src/util/os_file.c @@ -37,7 +37,7 @@ readN(int fd, char *buf, size_t len) total += ret; } while (total != len); - return total ? total : err; + return total ? (ssize_t)total : err; } char *