[vlc-devel] commit: mmap: fix large file support on 32-bits archs (closes #2188) ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Nov 8 16:53:08 CET 2008
vlc | branch: 0.9-bugfix | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Nov 8 17:51:28 2008 +0200| [ecf0e952ef668e1785ee53505f5f072b9e0024d5] | committer: Rémi Denis-Courmont
mmap: fix large file support on 32-bits archs (closes #2188)
(cherry picked from commit 5b0e367ea7bd4aef9927bd2fe1231ec625a1509c)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ecf0e952ef668e1785ee53505f5f072b9e0024d5
---
modules/access/mmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/access/mmap.c b/modules/access/mmap.c
index 7e3a4a7..32eea02 100644
--- a/modules/access/mmap.c
+++ b/modules/access/mmap.c
@@ -199,7 +199,7 @@ static block_t *Block (access_t *p_access)
const uintptr_t page_mask = p_sys->page_size - 1;
/* Start the mapping on a page boundary: */
- off_t outer_offset = p_access->info.i_pos & ~page_mask;
+ off_t outer_offset = p_access->info.i_pos & ~(off_t)page_mask;
/* Skip useless bytes at the beginning of the first page: */
size_t inner_offset = p_access->info.i_pos & page_mask;
/* Map no more bytes than remain: */
More information about the vlc-devel
mailing list