From 608d481e6bf29f1b2aea0268b3130ad026f004ed Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 22 Jan 2001 00:12:23 +0000 Subject: Update. 2001-01-21 Franz Sirl * sysdeps/unix/sysv/linux/powerpc/mmap64.c: Correctly mask offset. 2001-01-21 Ulrich Drepper * malloc/malloc.c: Remove a few unnecessary initializers of global variables. --- sysdeps/unix/sysv/linux/powerpc/mmap64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps') diff --git a/sysdeps/unix/sysv/linux/powerpc/mmap64.c b/sysdeps/unix/sysv/linux/powerpc/mmap64.c index 076ceaa..fc0c959 100644 --- a/sysdeps/unix/sysv/linux/powerpc/mmap64.c +++ b/sysdeps/unix/sysv/linux/powerpc/mmap64.c @@ -47,7 +47,7 @@ __mmap64 (__ptr_t addr, size_t len, int prot, int flags, int fd, off64_t offset) # ifndef __ASSUME_MMAP2_SYSCALL ! have_no_mmap2 && # endif - ! (offset & -(1 << (PAGE_SHIFT+1)))) + ! (offset & ((1 << PAGE_SHIFT)-1))) { # ifndef __ASSUME_MMAP2_SYSCALL int saved_errno = errno; -- cgit v1.1