]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Avoid truncating addresses returned from mmap on 64 bit platforms.
authorTom Hughes <tom@compton.nu>
Tue, 29 Mar 2005 09:00:37 +0000 (09:00 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 29 Mar 2005 09:00:37 +0000 (09:00 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3474

coregrind/vg_mylibc.c

index 93413ea4c8c4c980b4840eef583d9038c9372fb4..e8f7e26f35047b71f512702501936b035e02e97b 100644 (file)
@@ -289,7 +289,7 @@ static Int munmap_inner(void *start, SizeT length)
 static Addr mmap_inner(void *start, SizeT length, UInt prot, UInt flags,
                        UInt fd, OffT offset)
 {
-   Int ret;
+   Word ret;
    
    VGP_DO_MMAP(ret, start, length, prot,
                flags & ~(VKI_MAP_NOSYMS|VKI_MAP_CLIENT), fd, offset);