[prev in list] [next in list] [prev in thread] [next in thread]
List: qemu-commits
Subject: [Qemu-commits] [COMMIT 5d02482] linux-user: fix old style decrement usage
From: Anthony Liguori <aliguori () us ! ibm ! com>
Date: 2009-09-30 19:01:10
Message-ID: 200909301900.n8UJ0GS0027287 () d03av02 ! boulder ! ibm ! com
[Download RAW message or body]
From: Michael S. Tsirkin <mst@redhat.com>
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>
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);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic