aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2009-09-30 19:44:18 +0200
committerBlue Swirl <blauwirbel@gmail.com>2009-09-30 18:45:50 +0000
commit5d024825be86255d4bf99f9f8004b7b21493147f (patch)
tree8af674e0440ee039913881df0a49171cd4452734
parentbdd7e1bc6f65c42a43f6177c46b95f87398b5411 (diff)
linux-user: fix old style decrement usage
Modern compilers do not parse "=-" as decrement: you must use "-=" for that. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--linux-user/arm/nwfpe/fpa11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/arm/nwfpe/fpa11.c b/linux-user/arm/nwfpe/fpa11.c
index 3ff80ebc88..c4461e010a 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);