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:
committed by
Eric Engestrom
parent
341ba406fd
commit
fd5c18de88
+1
-1
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user