mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-06 07:17:01 +02:00
bios_emulator: Add parens to xorl macro
The xorl macro lacked surrounding parens which meant that it could have unexpected results when used in expressions. Fix this by adding the surrounding parens to make its use predictable. This issue was found by Smatch. Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
This commit is contained in:
parent
4b8aba93bd
commit
0fdcca86d8
@ -66,7 +66,7 @@ void x86emuOp2_illegal_op(
|
||||
END_OF_INSTR();
|
||||
}
|
||||
|
||||
#define xorl(a,b) ((a) && !(b)) || (!(a) && (b))
|
||||
#define xorl(a, b) (((a) && !(b)) || (!(a) && (b)))
|
||||
|
||||
/****************************************************************************
|
||||
REMARKS:
|
||||
|
Loading…
Reference in New Issue
Block a user