[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [4844] Avoid compiler warning.
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] Re: [4844] Avoid compiler warning. |
Date: |
Fri, 04 Jul 2008 08:05:37 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
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
signature.asc
Description: OpenPGP digital signature