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:
Martin Lindhe 2016-11-16 15:46:00 +01:00 committed by Cyrill Gorcunov
parent f172526697
commit 3478078c5f

View File

@ -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;