diff options
author | Eric Engestrom <[email protected]> | 2019-05-16 13:08:53 +0100 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2019-06-09 13:14:13 +0000 |
commit | fd5c18de883cbf56fe925fc3f3ff3031ed535377 (patch) | |
tree | 0f848ca53933a182b9908c8e8ed3885e1029c18e /src/util/os_file.c | |
parent | 341ba406fde73c322fa4ed4a84c9ba1eb1a476b6 (diff) |
util/os_file: fix error being sign-cast back and forth
Signed-off-by: Eric Engestrom <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/util/os_file.c')
-rw-r--r-- | src/util/os_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 * |