From 7be9bb7deef87e64703125d3dc7bf5a1ee0e3d7c Mon Sep 17 00:00:00 2001 From: smf- Date: Thu, 15 Aug 2019 12:46:22 +0100 Subject: uintptr_t ftw (nw) --- src/devices/bus/ti99/colorbus/busmouse.cpp | 4 ++-- src/devices/bus/ti99/gromport/gkracker.cpp | 4 ++-- src/devices/bus/ti99/gromport/multiconn.cpp | 2 +- src/devices/bus/ti99/internal/genboard.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/devices/bus/ti99/colorbus/busmouse.cpp b/src/devices/bus/ti99/colorbus/busmouse.cpp index 6d1bd56c63a..2888cbee9c0 100644 --- a/src/devices/bus/ti99/colorbus/busmouse.cpp +++ b/src/devices/bus/ti99/colorbus/busmouse.cpp @@ -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; diff --git a/src/devices/bus/ti99/gromport/gkracker.cpp b/src/devices/bus/ti99/gromport/gkracker.cpp index 57ccfbc87e1..3b9958db8a5 100644 --- a/src/devices/bus/ti99/gromport/gkracker.cpp +++ b/src/devices/bus/ti99/gromport/gkracker.cpp @@ -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) diff --git a/src/devices/bus/ti99/gromport/multiconn.cpp b/src/devices/bus/ti99/gromport/multiconn.cpp index 191853f1029..7784621a2d7 100644 --- a/src/devices/bus/ti99/gromport/multiconn.cpp +++ b/src/devices/bus/ti99/gromport/multiconn.cpp @@ -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; } diff --git a/src/devices/bus/ti99/internal/genboard.cpp b/src/devices/bus/ti99/internal/genboard.cpp index d8998a2f33f..62fb066b150 100644 --- a/src/devices/bus/ti99/internal/genboard.cpp +++ b/src/devices/bus/ti99/internal/genboard.cpp @@ -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) -- cgit v1.2.3