hdc92x4: Fix ambiguity of ?: operator flagged by PVS-Studio [MooglyGuy]

This commit is contained in:
therealmogminer@gmail.com 2015-11-06 14:05:11 +01:00
parent 52fa9421b9
commit 93c53de0bc

View File

@ -1911,7 +1911,10 @@ bool hdc92x4_device::found_mark(int state)
bool ismark = false;
if (using_floppy())
{
if (state==SEARCH_IDAM) ismark = (m_live_state.shift_reg == fm_mode() ? 0xf57e : 0x4489);
if (state == SEARCH_IDAM)
{
ismark = (m_live_state.shift_reg == (fm_mode() ? 0xf57e : 0x4489));
}
else
{
// f56a 1x1x