Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int m_led_extender;
- #define CARD_A 1
- #define NO_EXTENDER 0
- static WRITE8_DEVICE_HANDLER( pia_ic5_porta_w )
- {
- ...
- else if ((state->m_led_extender != CARD_A)||
- (state->m_led_extender != NO_EXTENDER))
- ...
- }
- This suspicious code was found in MAME project by PVS-Studio static code analyzer.
- Warning message is:
- V547 Expression is always true. Probably the '&&' operator should be used here. mpu4.c 934
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment