summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/rdwr-internal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdiskfs/rdwr-internal.c b/libdiskfs/rdwr-internal.c
index 25d1dc59..900467cb 100644
--- a/libdiskfs/rdwr-internal.c
+++ b/libdiskfs/rdwr-internal.c
@@ -66,7 +66,7 @@ _diskfs_rdwr_internal (struct node *np,
diskfs_register_memory_fault_area (diskfs_get_filemap_pager_struct (np),
winoff, window, 8 * __vm_page_size);
- if ((offset - winoff) + amt > 8 * __vm_page_size)
+ if ((offset - winoff) + amt > 8 * (off_t) __vm_page_size)
cc = 8 * __vm_page_size - (offset - winoff);
else
cc = amt;