From 83150696bf8ceba8e1f5dfa48f2148c0e6b25257 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Tue, 13 Aug 2024 19:45:34 -0500 Subject: [PATCH] Fix possible loss of data warning in RGBController_RedSquareKeyroxTKLClassic.cpp --- .../RGBController_RedSquareKeyroxTKLClassic.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Controllers/RedSquareKeyroxController/RedSquareKeyroxTKLClassicController/RGBController_RedSquareKeyroxTKLClassic.cpp b/Controllers/RedSquareKeyroxController/RedSquareKeyroxTKLClassicController/RGBController_RedSquareKeyroxTKLClassic.cpp index b1db8d57..9c3dd9f7 100644 --- a/Controllers/RedSquareKeyroxController/RedSquareKeyroxTKLClassicController/RGBController_RedSquareKeyroxTKLClassic.cpp +++ b/Controllers/RedSquareKeyroxController/RedSquareKeyroxTKLClassicController/RGBController_RedSquareKeyroxTKLClassic.cpp @@ -234,8 +234,8 @@ void RGBController_RedSquareKeyroxTKLClassic::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); }