From 4cdee33ae488d7325f8e89b95b420a5afe623c42 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Thu, 1 Aug 2024 00:24:26 -0500 Subject: [PATCH] Fix possible loss of data warning in RGBController_WinbondGamingKeyboard.cpp --- .../RGBController_WinbondGamingKeyboard.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/WinbondGamingKeyboardController/RGBController_WinbondGamingKeyboard.cpp b/Controllers/WinbondGamingKeyboardController/RGBController_WinbondGamingKeyboard.cpp index c2c434e7..875847e0 100644 --- a/Controllers/WinbondGamingKeyboardController/RGBController_WinbondGamingKeyboard.cpp +++ b/Controllers/WinbondGamingKeyboardController/RGBController_WinbondGamingKeyboard.cpp @@ -762,8 +762,8 @@ void RGBController_WinbondGamingKeyboard::SetupZones() { led new_led; - new_led.name = new_kb.GetKeyNameAt(led_idx); - new_led.value = new_kb.GetKeyValueAt(led_idx); + new_led.name = new_kb.GetKeyNameAt((unsigned int)led_idx); + new_led.value = new_kb.GetKeyValueAt((unsigned int)led_idx); leds.push_back(new_led); }