fixed compiler warnings (nw)

This commit is contained in:
Oliver Stöneberg 2013-01-28 01:14:39 +00:00
parent 1778afc2e8
commit c4902bc625
2 changed files with 2 additions and 2 deletions

View File

@ -238,7 +238,7 @@ CUSTOM_INPUT_MEMBER(cd32_state::cubo_input)
CUSTOM_INPUT_MEMBER(cd32_state::cd32_sel_mirror_input)
{
ioport_port* ports[2]= { m_p1_port, m_p2_port };
UINT8 bits = ports[(int)param]->read();
UINT8 bits = ports[(int)(FPTR)param]->read();
return (bits & 0x20)>>5;
}

View File

@ -413,7 +413,7 @@ CUSTOM_INPUT_MEMBER( amiga_state::amiga_joystick_convert )
{
ioport_port* ports[2] = { m_p1joy_port, m_p2joy_port };
UINT8 bits;
if (ports[(int)param]) bits = ports[(int)param]->read();
if (ports[(int)(FPTR)param]) bits = ports[(int)(FPTR)param]->read();
else bits = 0xff;
int up = (bits >> 0) & 1;