Showing 4 of 4 total issues
Clarify calculation precedence for &
and ?
. Open
Open
input_report_key(gamepad, BTN_PADDLES(0), value & 1 ? 1 : 0);
- Read upRead up
- Exclude checks
Suspicious calculation. Please use parentheses to clarify the code. The code a&b?c:d
should be written as either (a&b)?c:d
or a&(b?c:d)
. (detailed CWE explanation)
Clarify calculation precedence for &
and ?
. Open
Open
input_report_key(gamepad, BTN_PADDLES(1), value & 2 ? 1 : 0);
- Read upRead up
- Exclude checks
Suspicious calculation. Please use parentheses to clarify the code. The code a&b?c:d
should be written as either (a&b)?c:d
or a&(b?c:d)
. (detailed CWE explanation)
Clarify calculation precedence for &
and ?
. Open
Open
input_report_key(gamepad, BTN_PADDLES(3), value & 8 ? 1 : 0);
- Read upRead up
- Exclude checks
Suspicious calculation. Please use parentheses to clarify the code. The code a&b?c:d
should be written as either (a&b)?c:d
or a&(b?c:d)
. (detailed CWE explanation)
Clarify calculation precedence for &
and ?
. Open
Open
input_report_key(gamepad, BTN_PADDLES(2), value & 4 ? 1 : 0);
- Read upRead up
- Exclude checks
Suspicious calculation. Please use parentheses to clarify the code. The code a&b?c:d
should be written as either (a&b)?c:d
or a&(b?c:d)
. (detailed CWE explanation)