summaryrefslogtreecommitdiff
path: root/src/util/os_file.c
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@intel.com>2019-05-16 15:37:28 +0100
committerEric Engestrom <eric@engestrom.ch>2019-06-09 13:14:13 +0000
commit93349d71183d4a50ef5ad90b32cb96b9f84d3eec (patch)
tree5faafcaf61b068ce1a03c379048c49cdf01a2b2d /src/util/os_file.c
parentfd5c18de883cbf56fe925fc3f3ff3031ed535377 (diff)
downloadmesa-93349d71183d4a50ef5ad90b32cb96b9f84d3eec.tar.gz
mesa-93349d71183d4a50ef5ad90b32cb96b9f84d3eec.tar.bz2
mesa-93349d71183d4a50ef5ad90b32cb96b9f84d3eec.zip
util/os_file: suppress sign comparison warning
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/util/os_file.c')
-rw-r--r--src/util/os_file.c2
1 files changed, 1 insertions, 1 deletions
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);