summaryrefslogtreecommitdiffstats
path: root/libpixelflinger/codeflinger
diff options
context:
space:
mode:
authorAshok Bhat <ashok.bhat@arm.com>2013-11-14 11:13:41 +0000
committerDavid Butcher <david.butcher@arm.com>2013-12-12 17:30:13 +0000
commitd10afb17486f87a56baf97a893b4e4533eb5b851 (patch)
tree72990f9b077ffadaf412e91397bde6b614a01bfc /libpixelflinger/codeflinger
parent8779c4eab43956ecf626bbece3f6f3bc54970d6a (diff)
downloadsystem_core-d10afb17486f87a56baf97a893b4e4533eb5b851.zip
system_core-d10afb17486f87a56baf97a893b4e4533eb5b851.tar.gz
system_core-d10afb17486f87a56baf97a893b4e4533eb5b851.tar.bz2
Pixelflinger: Fix issue of pointers being stored in ints
Pixelflinger's code makes assumptions, at certain places, that pointers can be stored as ints. This patch makes use of uintptr_t wherever pointers are stored as int or cast to int. Change-Id: Ie76f425cbc82ac038a747f77a95bd31774f4a8e8 Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Diffstat (limited to 'libpixelflinger/codeflinger')
-rw-r--r--libpixelflinger/codeflinger/ARMAssembler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/libpixelflinger/codeflinger/ARMAssembler.cpp b/libpixelflinger/codeflinger/ARMAssembler.cpp
index 607ed3c..92243da 100644
--- a/libpixelflinger/codeflinger/ARMAssembler.cpp
+++ b/libpixelflinger/codeflinger/ARMAssembler.cpp
@@ -99,8 +99,8 @@ void ARMAssembler::disassemble(const char* name)
if (comment >= 0) {
printf("; %s\n", mComments.valueAt(comment));
}
- printf("%08x: %08x ", int(i), int(i[0]));
- ::disassemble((u_int)i);
+ printf("%08x: %08x ", uintptr_t(i), int(i[0]));
+ ::disassemble((uintptr_t)i);
i++;
}
}
@@ -186,7 +186,7 @@ int ARMAssembler::generate(const char* name)
#if defined(WITH_LIB_HARDWARE)
if (__builtin_expect(mQemuTracing, 0)) {
- int err = qemu_add_mapping(int(base()), name);
+ int err = qemu_add_mapping(uintptr_t(base()), name);
mQemuTracing = (err >= 0);
}
#endif