qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 07/13] linux-user: fix old style decrement usage


From: Michael S. Tsirkin
Subject: [Qemu-devel] [PATCH 07/13] linux-user: fix old style decrement usage
Date: Wed, 30 Sep 2009 19:44:18 +0200
User-agent: Mutt/1.5.19 (2009-01-05)

Modern compilers do not parse "=-" as decrement:
you must use "-=" for that.

Signed-off-by: Michael S. Tsirkin <address@hidden>
---
 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]