Skip to contentSkip to conversation

linux-user: fix up oversealous nitpicking

PATCH New Michael S. Tsirkin 1 participant 1 message Oct 1, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-user: fix up oversealous nitpicking

Looks like linux-user code was correct, just unreadable: what it wanted to do with "-=" was really assign a negative number, not decrement. Fix up accordingly.

---
 linux-user/arm/nwfpe/fpa11.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
linux-user/arm/nwfpe/fpa11.c +1 -1
index c4461e0..17a6048 100644
@@ -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);
Signature · 1 line
1.6.5.rc2