diff options
Diffstat (limited to 'libdex/SysUtil.cpp')
-rw-r--r-- | libdex/SysUtil.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdex/SysUtil.cpp b/libdex/SysUtil.cpp index a412a12c4..456d26ec4 100644 --- a/libdex/SysUtil.cpp +++ b/libdex/SysUtil.cpp @@ -331,7 +331,7 @@ int sysChangeMapAccess(void* addr, size_t length, int wantReadWrite, * (The address must be page-aligned, the length doesn't need to be, * but we do need to ensure we cover the same range.) */ - u1* alignAddr = (u1*) ((int) addr & ~(SYSTEM_PAGE_SIZE-1)); + u1* alignAddr = (u1*) ((uintptr_t) addr & ~(SYSTEM_PAGE_SIZE-1)); size_t alignLength = length + ((u1*) addr - alignAddr); //ALOGI("%p/%zd --> %p/%zd", addr, length, alignAddr, alignLength); |