summaryrefslogtreecommitdiff
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 /linux-user
parenttwl92230: fix old style increment/decrement usage (diff)
downloadqemu-kvm-5d024825be86255d4bf99f9f8004b7b21493147f.tar.gz
qemu-kvm-5d024825be86255d4bf99f9f8004b7b21493147f.tar.bz2
qemu-kvm-5d024825be86255d4bf99f9f8004b7b21493147f.zip
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>
Diffstat (limited to 'linux-user')
-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 3ff80ebc8..c4461e010 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);