Previous 15994 Revisions Next

r15739 Saturday 4th August, 2012 at 09:18:37 UTC by Firewave
fixed some bogus if-conditions reported by Visual Studio Code Analysis (no whatsnew)
[src/mess/drivers]fm7.c
[src/mess/formats]spec_snqk.c

src/mess/formats/spec_snqk.c
r15738r15739
131131    }
132132    else if (!mame_stricmp(file_type, "sp"))
133133    {
134        if ((snapshot_data[0] != 'S' && snapshot_data[1] != 'P') && (snapshot_size != SP_NEW_SIZE_16K || snapshot_size != SP_NEW_SIZE_48K))
134        if ((snapshot_data[0] != 'S' && snapshot_data[1] != 'P') && (snapshot_size != SP_NEW_SIZE_16K && snapshot_size != SP_NEW_SIZE_48K))
135135        {
136136            if (snapshot_size != SP_OLD_SIZE)
137137            {
r15738r15739
161161    }
162162    else if (!mame_stricmp(file_type, "plusd"))
163163    {
164        if ((snapshot_size != PLUSD48_SIZE) || (snapshot_size != PLUSD128_SIZE))
164        if ((snapshot_size != PLUSD48_SIZE) && (snapshot_size != PLUSD128_SIZE))
165165        {
166166            logerror("Invalid .PLUSD file size.\n");
167167            goto error;
src/mess/drivers/fm7.c
r15738r15739
10641064   }
10651065   if(physical == 0x36 || physical == 0x37)
10661066   {
1067      if(state->m_init_rom_en && (state->m_type != SYS_FM11 || state->m_type != SYS_FM16))
1067      if(state->m_init_rom_en && (state->m_type != SYS_FM11 && state->m_type != SYS_FM16))
10681068      {
10691069         RAM = space->machine().root_device().memregion("init")->base();
10701070         space->install_read_bank(bank*0x1000,(bank*0x1000)+size,bank_name);
r15738r15739
10751075   }
10761076   if(physical > 0x37 && physical <= 0x3f)
10771077   {
1078      if(state->m_basic_rom_en && (state->m_type != SYS_FM11 || state->m_type != SYS_FM16))
1078      if(state->m_basic_rom_en && (state->m_type != SYS_FM11 && state->m_type != SYS_FM16))
10791079      {
10801080         RAM = space->machine().root_device().memregion("fbasic")->base();
10811081         space->install_read_bank(bank*0x1000,(bank*0x1000)+size,bank_name);

Previous 15994 Revisions Next


© 1998-2018 The MESS Team