From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KEWTo-00057I-OT for qemu-devel@nongnu.org; Thu, 03 Jul 2008 17:36:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KEWTm-000575-AJ for qemu-devel@nongnu.org; Thu, 03 Jul 2008 17:36:39 -0400 Received: from [199.232.76.173] (port=58735 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KEWTm-000572-4D for qemu-devel@nongnu.org; Thu, 03 Jul 2008 17:36:38 -0400 Received: from savannah.gnu.org ([199.232.41.3]:51524 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KEWTl-0005QK-SY for qemu-devel@nongnu.org; Thu, 03 Jul 2008 17:36:37 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KEWTk-000786-Fk for qemu-devel@nongnu.org; Thu, 03 Jul 2008 21:36:36 +0000 Received: from ths by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KEWTk-000782-7A for qemu-devel@nongnu.org; Thu, 03 Jul 2008 21:36:36 +0000 MIME-Version: 1.0 Errors-To: ths Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Thiemo Seufer Message-Id: Date: Thu, 03 Jul 2008 21:36:36 +0000 Subject: [Qemu-devel] [4844] Avoid compiler warning. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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)