about summary refs log tree commit diff stats
path: root/miasm2/jitter/vm_mngr.c
diff options
context:
space:
mode:
authorAymeric Vincent <aymeric.vincent@cea.fr>2015-11-23 16:58:26 +0100
committerAymeric Vincent <aymeric.vincent@cea.fr>2015-11-23 16:58:26 +0100
commit06e2b97eee04b1234853810236d21cd23fe5d451 (patch)
tree6b0cc7c8cdac31159e835525fa05e3812407d58c /miasm2/jitter/vm_mngr.c
parentbdcd9113a9c1e4299ff534555e5283e21121ce29 (diff)
downloadmiasm-06e2b97eee04b1234853810236d21cd23fe5d451.tar.gz
miasm-06e2b97eee04b1234853810236d21cd23fe5d451.zip
Squelch a couple of warnings on 32 bit architectures with respect to
casts between 32 bit pointers vs 64 bit integers.
Diffstat (limited to 'miasm2/jitter/vm_mngr.c')
-rw-r--r--miasm2/jitter/vm_mngr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/jitter/vm_mngr.c b/miasm2/jitter/vm_mngr.c
index 1a04ba63..3597ae4f 100644
--- a/miasm2/jitter/vm_mngr.c
+++ b/miasm2/jitter/vm_mngr.c
@@ -79,7 +79,7 @@ uint64_t set_endian64(vm_mngr_t* vm_mngr, uint64_t val)
 
 void print_val(uint64_t base, uint64_t addr)
 {
-	uint64_t *ptr =  (uint64_t *) addr;
+	uint64_t *ptr = (uint64_t *) (intptr_t) addr;
 	fprintf(stderr, "addr 0x%"PRIX64" val 0x%"PRIX64"\n", addr-base, *ptr);
 }