mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
util/os_file: suppress sign comparison warning
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
fd5c18de88
commit
93349d7118
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ os_read_file(const char *filename)
|
|||
|
||||
ssize_t actually_read;
|
||||
size_t offset = 0, remaining = len - 1;
|
||||
while ((actually_read = readN(fd, buf + offset, remaining)) == remaining) {
|
||||
while ((actually_read = readN(fd, buf + offset, remaining)) == (ssize_t)remaining) {
|
||||
char *newbuf = realloc(buf, 2 * len);
|
||||
if (!newbuf) {
|
||||
free(buf);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue