qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4844] Avoid compiler warning.
@ 2008-07-03 21:36 Thiemo Seufer
  2008-07-04  6:05 ` [Qemu-devel] " Jan Kiszka
  2008-07-04  7:29 ` [Qemu-devel] " Laurent Desnogues
  0 siblings, 2 replies; 3+ messages in thread
From: Thiemo Seufer @ 2008-07-03 21:36 UTC (permalink / raw)
  To: qemu-devel

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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-04  9:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-03 21:36 [Qemu-devel] [4844] Avoid compiler warning Thiemo Seufer
2008-07-04  6:05 ` [Qemu-devel] " Jan Kiszka
2008-07-04  7:29 ` [Qemu-devel] " Laurent Desnogues

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).