Mesa (master): util/os_file: suppress sign comparison warning
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sun Jun 9 13:22:50 UTC 2019
Module: Mesa
Branch: master
Commit: 93349d71183d4a50ef5ad90b32cb96b9f84d3eec
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=93349d71183d4a50ef5ad90b32cb96b9f84d3eec
Author: Eric Engestrom <eric.engestrom at intel.com>
Date: Thu May 16 15:37:28 2019 +0100
util/os_file: suppress sign comparison warning
Signed-off-by: Eric Engestrom <eric.engestrom at intel.com>
Reviewed-by: Eric Anholt <eric at anholt.net>
---
src/util/os_file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/os_file.c b/src/util/os_file.c
index 6e78a231d67..a700f3aada3 100644
--- a/src/util/os_file.c
+++ b/src/util/os_file.c
@@ -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);
More information about the mesa-commit
mailing list