From fd5c18de883cbf56fe925fc3f3ff3031ed535377 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 16 May 2019 13:08:53 +0100 Subject: [PATCH] util/os_file: fix error being sign-cast back and forth Signed-off-by: Eric Engestrom Reviewed-by: Eric Anholt --- src/util/os_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/os_file.c b/src/util/os_file.c index 400a2a12..6e78a23 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 * -- 2.7.4