Previous 199869 Revisions Next

r20565 Monday 28th January, 2013 at 01:14:39 UTC by Oliver Stöneberg
fixed compiler warnings (nw)
[src/mame/drivers]cd32.c
[src/mame/machine]amiga.c

trunk/src/mame/drivers/cd32.c
r20564r20565
238238CUSTOM_INPUT_MEMBER(cd32_state::cd32_sel_mirror_input)
239239{
240240   ioport_port* ports[2]= { m_p1_port, m_p2_port };
241   UINT8 bits = ports[(int)param]->read();
241   UINT8 bits = ports[(int)(FPTR)param]->read();
242242   return (bits & 0x20)>>5;
243243}
244244
trunk/src/mame/machine/amiga.c
r20564r20565
413413{
414414   ioport_port* ports[2] = { m_p1joy_port, m_p2joy_port };
415415   UINT8 bits;
416   if (ports[(int)param]) bits = ports[(int)param]->read();
416   if (ports[(int)(FPTR)param]) bits = ports[(int)(FPTR)param]->read();
417417   else bits = 0xff;
418418
419419   int up = (bits >> 0) & 1;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team