util/os_file: fix error being sign-cast back and forth

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Eric Engestrom 2019-05-16 13:08:53 +01:00 committed by Eric Engestrom
parent 341ba406fd
commit fd5c18de88

View file

@ -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 *