From e1de87529a17c8b9a9da912e099d1a908f528652 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Wed, 3 Jan 2024 11:55:10 +0100 Subject: [PATCH] Fix minor warnings --- platforms/desktop-shared/application.cpp | 10 +++++----- platforms/libretro/libretro.cpp | 8 ++++---- src/Memory_inline.h | 3 ++- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/platforms/desktop-shared/application.cpp b/platforms/desktop-shared/application.cpp index b250514..6c7380e 100644 --- a/platforms/desktop-shared/application.cpp +++ b/platforms/desktop-shared/application.cpp @@ -267,21 +267,21 @@ static void sdl_events_emu(const SDL_Event* event) // SAC case (1): { - emu_spinner1(-relx); + emu_spinner1((int)-relx); break; } // Wheel case (2): { - emu_spinner1(relx); + emu_spinner1((int)relx); break; } // Roller case (3): { float rely = (float)(event->motion.yrel) * senf; - emu_spinner1(relx); - emu_spinner2(rely); + emu_spinner1((int)relx); + emu_spinner2((int)rely); break; } default: @@ -303,7 +303,7 @@ static void sdl_events_emu(const SDL_Event* event) float senf = (float)(sen / 2.0f) + 1.0f; float rely = (float)(event->wheel.y) * senf; - emu_spinner2(rely); + emu_spinner2((int)rely); } } break; diff --git a/platforms/libretro/libretro.cpp b/platforms/libretro/libretro.cpp index 30fedf9..5852e57 100644 --- a/platforms/libretro/libretro.cpp +++ b/platforms/libretro/libretro.cpp @@ -421,21 +421,21 @@ static void update_input(void) // SAC case (1): { - core->Spinner1(-relx); + core->Spinner1((int)-relx); break; } // Wheel case (2): { - core->Spinner1(relx); + core->Spinner1((int)relx); break; } // Roller case (3): { float rely = (float)(mouse_y) * senf; - core->Spinner1(relx); - core->Spinner2(rely); + core->Spinner1((int)relx); + core->Spinner2((int)rely); break; } default: diff --git a/src/Memory_inline.h b/src/Memory_inline.h index 426bd29..2376c7a 100644 --- a/src/Memory_inline.h +++ b/src/Memory_inline.h @@ -153,7 +153,7 @@ inline void Memory::Write(u16 address, u8 value) m_RomBank = (address >> 4) & (m_pCartridge->GetROMBankCount() - 1); m_RomBankAddress = m_RomBank << 14; } - +#ifdef DEBUG_GEARCOLECO if (address == 0xFFC0) Log("--> ** EEPROM write SCL=0: %X %X", address, value); if (address == 0xFFD0) @@ -162,6 +162,7 @@ inline void Memory::Write(u16 address, u8 value) Log("--> ** EEPROM write SDA=0: %X %X", address, value); if (address == 0xFFF0) Log("--> ** EEPROM write SDA=1: %X %X", address, value); +#endif } else {