mirror of
https://github.com/holub/mame
synced 2025-07-05 09:57:47 +03:00
fixed compiler warnings (nw)
This commit is contained in:
parent
1778afc2e8
commit
c4902bc625
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user