Thiemo Seufer wrote: > 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)) Just to keep heads up: While this is OK in itself, the potential bug it pointed out is still open, see http://permalink.gmane.org/gmane.comp.emulators.qemu/26687 Jan