mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-02-17 17:19:35 +08:00
disasm: matches -- fix operator priority error with parenthesis
fixes pvs-studio error 'V502 Perhaps the '?:' operator works in a different way than it was expected. The '?:' operator has a lower priority than the '!=' operator.' Signed-off-by: Martin Lindhe <martin-commit@ubique.se> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
f172526697
commit
3478078c5f
@ -911,7 +911,7 @@ static int matches(const struct itemplate *t, uint8_t *data,
|
||||
break;
|
||||
|
||||
case 0322:
|
||||
if (osize != (segsize == 16) ? 16 : 32)
|
||||
if (osize != (segsize == 16 ? 16 : 32))
|
||||
return 0;
|
||||
else
|
||||
o_used = true;
|
||||
|
Loading…
Reference in New Issue
Block a user