uintptr_t ftw (nw)

This commit is contained in:
smf- 2019-08-15 12:46:22 +01:00
parent 016367ba90
commit 7be9bb7dee
4 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@ void v9938_busmouse_device::device_reset()
INPUT_CHANGED_MEMBER( v9938_busmouse_device::mouse_button_changed )
{
const int mask((uint64_t)param);
const int mask((uintptr_t)param);
LOGMASKED(LOG_BUTTON, "Button %d: %d\n", mask, newval);
if (newval==1)
m_bstate |= mask;
@ -63,7 +63,7 @@ INPUT_CHANGED_MEMBER( v9938_busmouse_device::mouse_button_changed )
INPUT_CHANGED_MEMBER( v9938_busmouse_device::mouse_pos_changed )
{
const int axis((uint64_t)param);
const int axis((uintptr_t)param);
int16_t pos = (int16_t)newval;
int delta;

View File

@ -317,8 +317,8 @@ void ti99_gkracker_device::cruwrite(offs_t offset, uint8_t data)
INPUT_CHANGED_MEMBER( ti99_gkracker_device::gk_changed )
{
LOGMASKED(LOG_GKRACKER, "Input changed %d - %d\n", (int)((uint64_t)param & 0x07), newval);
m_gk_switch[(uint64_t)param & 0x07] = newval;
LOGMASKED(LOG_GKRACKER, "Input changed %d - %d\n", (int)((uintptr_t)param & 0x07), newval);
m_gk_switch[(uintptr_t)param & 0x07] = newval;
}
void ti99_gkracker_device::insert(int index, ti99_cartridge_device* cart)

View File

@ -311,7 +311,7 @@ void ti99_multi_cart_conn_device::device_add_mconfig(machine_config &config)
INPUT_CHANGED_MEMBER( ti99_multi_cart_conn_device::switch_changed )
{
LOGMASKED(LOG_CHANGE, "Slot changed %d - %d\n", (int)((uint64_t)param & 0x07), newval);
LOGMASKED(LOG_CHANGE, "Slot changed %d - %d\n", (int)((uintptr_t)param & 0x07), newval);
m_active_slot = m_fixed_slot = newval - 1;
}

View File

@ -294,7 +294,7 @@ INPUT_CHANGED_MEMBER( geneve_mapper_device::settings_changed )
INPUT_CHANGED_MEMBER( genmod_mapper_device::setgm_changed )
{
int number = (int)((uint64_t)param&0x03);
int number = (int)((uintptr_t)param&0x03);
int value = newval;
switch (number)