summaryrefslogtreecommitdiff
path: root/cpu-all.h
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-03 21:36:35 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-03 21:36:35 +0000
commitadd9ee60d9419526bd981c291a2874ac8b374264 (patch)
tree3b520e138c873a07f99920330c405f79bf0f5509 /cpu-all.h
parent4ad3091daeb719883ce64de7d8542ee88a70ae6a (diff)
downloadqemu-add9ee60d9419526bd981c291a2874ac8b374264.tar.gz
qemu-add9ee60d9419526bd981c291a2874ac8b374264.tar.bz2
qemu-add9ee60d9419526bd981c291a2874ac8b374264.zip
Avoid compiler warning.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4844 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cpu-all.h')
-rw-r--r--cpu-all.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpu-all.h b/cpu-all.h
index 0b19ac9e33..d350b30682 100644
--- a/cpu-all.h
+++ b/cpu-all.h
@@ -667,7 +667,7 @@ static inline void stfq_be_p(void *ptr, float64 v)
/* All direct uses of g2h and h2g need to go away for usermode softmmu. */
#define g2h(x) ((void *)((unsigned long)(x) + GUEST_BASE))
-#define h2g(x) ((target_ulong)(x - GUEST_BASE))
+#define h2g(x) ((target_ulong)((unsigned long)(x) - GUEST_BASE))
#define saddr(x) g2h(x)
#define laddr(x) g2h(x)