summaryrefslogtreecommitdiff
path: root/src/common/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/compat.c')
-rw-r--r--src/common/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index db38e757e3..75e37a8b79 100644
--- a/src/common/compat.c
+++ b/src/common/compat.c
@@ -135,7 +135,7 @@ tor_mmap_file(const char *filename)
return NULL;
}
- size = filesize = lseek(fd, 0, SEEK_END);
+ size = filesize = (size_t) lseek(fd, 0, SEEK_END);
lseek(fd, 0, SEEK_SET);
/* ensure page alignment */
page_size = getpagesize();