diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-04-15 15:18:29 +0200 |
---|---|---|
committer | Stefan Weil <sw@weilnetz.de> | 2012-04-15 21:25:16 +0200 |
commit | 27b0dc16b4e50b59aeefff2bfa73cf2eb8c7a70d (patch) | |
tree | a2097f8469761971d90fa53cc73ddfa35cd22bd3 | |
parent | 8d918718edcd6753aa12be96b71d1bd4fb6ed7cd (diff) | |
download | qemu-27b0dc16b4e50b59aeefff2bfa73cf2eb8c7a70d.zip qemu-27b0dc16b4e50b59aeefff2bfa73cf2eb8c7a70d.tar.gz qemu-27b0dc16b4e50b59aeefff2bfa73cf2eb8c7a70d.tar.bz2 |
w64: Fix type casts used in some macros in cpu-all.h
Instead of type casts to long, w64 needs type casts to intptr_t.
For other hosts, this changes nothing.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
-rw-r--r-- | cpu-all.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -222,8 +222,8 @@ extern unsigned long reserved_va; #else /* !CONFIG_USER_ONLY */ /* NOTE: we use double casts if pointers and target_ulong have different sizes */ -#define saddr(x) (uint8_t *)(long)(x) -#define laddr(x) (uint8_t *)(long)(x) +#define saddr(x) (uint8_t *)(intptr_t)(x) +#define laddr(x) (uint8_t *)(intptr_t)(x) #endif #define ldub_raw(p) ldub_p(laddr((p))) |