From a33ec20c218cdecdd105514963bcb5912e3bfaa5 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sat, 15 Jul 2023 07:55:04 +0200 Subject: [PATCH] Silence warning --- runahead.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runahead.c b/runahead.c index 1595b9a6cd..68a59e32e1 100644 --- a/runahead.c +++ b/runahead.c @@ -511,11 +511,11 @@ static bool secondary_core_create(runloop_state_t *runloop_st, { if (port < sys_info->ports.size) { - unsigned device = (port < (int)num_active_users) ? - runloop_st->port_map[port] : RETRO_DEVICE_NONE; - + unsigned device = (port < num_active_users) + ? runloop_st->port_map[port] + : RETRO_DEVICE_NONE; runloop_st->secondary_core.retro_set_controller_port_device( - port, device); + (unsigned)port, device); } } }