summaryrefslogtreecommitdiffstats
path: root/dexdump
diff options
context:
space:
mode:
authorSangWook Han <sangwook.han@gmail.com>2012-07-15 22:42:28 +0900
committerElliott Hughes <enh@google.com>2012-07-18 17:13:24 -0700
commitb210a9f9c7ae17e2028a86d9a4e9a3b35472862a (patch)
treed6d5fc91ee67d127e63223782ad10bdf7b4af3ed /dexdump
parentfd9491c5ea82e91d0085679caa82195bb5b4d17b (diff)
downloadandroid_dalvik-b210a9f9c7ae17e2028a86d9a4e9a3b35472862a.tar.gz
android_dalvik-b210a9f9c7ae17e2028a86d9a4e9a3b35472862a.tar.bz2
android_dalvik-b210a9f9c7ae17e2028a86d9a4e9a3b35472862a.zip
Use uintptr_t for cast pointer to integer.
On 64bit host, sizeof pointer is not equal to sizeof int/u4. Need for host tools. Change-Id: Id8d9418787e79523226b9c9e3f67277f9ac7c6aa
Diffstat (limited to 'dexdump')
-rw-r--r--dexdump/DexDump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dexdump/DexDump.cpp b/dexdump/DexDump.cpp
index bd2f17cf6..31fd1f8da 100644
--- a/dexdump/DexDump.cpp
+++ b/dexdump/DexDump.cpp
@@ -1518,7 +1518,7 @@ bail:
*/
static inline const u1* align32(const u1* ptr)
{
- return (u1*) (((int) ptr + 3) & ~0x03);
+ return (u1*) (((uintptr_t) ptr + 3) & ~0x03);
}