* [Qemu-devel] [4358] Force correct evaluation order in a a == b != c condition.
@ 2008-05-06 14:45 Andrzej Zaborowski
0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-05-06 14:45 UTC (permalink / raw)
To: qemu-devel
Revision: 4358
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4358
Author: balrog
Date: 2008-05-06 14:45:30 +0000 (Tue, 06 May 2008)
Log Message:
-----------
Force correct evaluation order in a a == b != c condition.
Modified Paths:
--------------
trunk/hw/arm_gic.c
Modified: trunk/hw/arm_gic.c
===================================================================
--- trunk/hw/arm_gic.c 2008-05-06 14:40:28 UTC (rev 4357)
+++ trunk/hw/arm_gic.c 2008-05-06 14:45:30 UTC (rev 4358)
@@ -62,7 +62,7 @@
#define GIC_TEST_MODEL(irq) s->irq_state[irq].model
#define GIC_SET_LEVEL(irq, cm) s->irq_state[irq].level = (cm)
#define GIC_CLEAR_LEVEL(irq, cm) s->irq_state[irq].level &= ~(cm)
-#define GIC_TEST_LEVEL(irq, cm) (s->irq_state[irq].level & (cm)) != 0
+#define GIC_TEST_LEVEL(irq, cm) ((s->irq_state[irq].level & (cm)) != 0)
#define GIC_SET_TRIGGER(irq) s->irq_state[irq].trigger = 1
#define GIC_CLEAR_TRIGGER(irq) s->irq_state[irq].trigger = 0
#define GIC_TEST_TRIGGER(irq) s->irq_state[irq].trigger
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-05-06 14:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-06 14:45 [Qemu-devel] [4358] Force correct evaluation order in a a == b != c condition Andrzej Zaborowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).