summaryrefslogtreecommitdiff
path: root/mmap/unix/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'mmap/unix/common.c')
-rw-r--r--mmap/unix/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mmap/unix/common.c b/mmap/unix/common.c
index a97899288..1172f3c89 100644
--- a/mmap/unix/common.c
+++ b/mmap/unix/common.c
@@ -32,8 +32,8 @@
APR_DECLARE(apr_status_t) apr_mmap_offset(void **addr, apr_mmap_t *mmap,
apr_off_t offset)
-{
- if (offset < 0 || offset > mmap->size)
+{
+ if (offset < 0 || (apr_size_t)offset > mmap->size)
return APR_EINVAL;
(*addr) = (char *) mmap->mm + offset;