From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mt3Fw-0005vm-3E for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:46:24 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mt3Fr-0005q8-E0 for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:46:23 -0400 Received: from [199.232.76.173] (port=44813 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mt3Fr-0005pw-65 for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:46:19 -0400 Received: from mx1.redhat.com ([209.132.183.28]:27146) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mt3Fq-0006Wj-Eb for qemu-devel@nongnu.org; Wed, 30 Sep 2009 13:46:18 -0400 Date: Wed, 30 Sep 2009 19:44:18 +0200 From: "Michael S. Tsirkin" Message-ID: <20090930174418.GH1399@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PATCH 07/13] linux-user: fix old style decrement usage List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org Modern compilers do not parse "=-" as decrement: you must use "-=" for that. Signed-off-by: Michael S. Tsirkin --- linux-user/arm/nwfpe/fpa11.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/arm/nwfpe/fpa11.c b/linux-user/arm/nwfpe/fpa11.c index 3ff80eb..c4461e0 100644 --- a/linux-user/arm/nwfpe/fpa11.c +++ b/linux-user/arm/nwfpe/fpa11.c @@ -191,7 +191,7 @@ unsigned int EmulateAll(unsigned int opcode, FPA11* qfpa, CPUARMState* qregs) if(nRc == 1 && get_float_exception_flags(&fpa11->fp_status)) { //printf("fef 0x%x\n",float_exception_flags); - nRc=-get_float_exception_flags(&fpa11->fp_status); + nRc -= get_float_exception_flags(&fpa11->fp_status); } //printf("returning %d\n",nRc); -- 1.6.5.rc2