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:
parent
341ba406fd
commit
fd5c18de88
1 changed files with 1 additions and 1 deletions
|
|
@ -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 *
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue