[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [4844] Avoid compiler warning.
From: |
Thiemo Seufer |
Subject: |
[Qemu-devel] [4844] Avoid compiler warning. |
Date: |
Thu, 03 Jul 2008 21:36:36 +0000 |
Revision: 4844
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4844
Author: ths
Date: 2008-07-03 21:36:35 +0000 (Thu, 03 Jul 2008)
Log Message:
-----------
Avoid compiler warning.
Modified Paths:
--------------
trunk/cpu-all.h
Modified: trunk/cpu-all.h
===================================================================
--- trunk/cpu-all.h 2008-07-03 19:55:47 UTC (rev 4843)
+++ trunk/cpu-all.h 2008-07-03 21:36:35 UTC (rev 4844)
@@ -667,7 +667,7 @@
/* 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)
- [Qemu-devel] [4844] Avoid compiler warning.,
Thiemo Seufer <=