From b0c3856ab45d165d78f344ad3ce9440932d08b89 Mon Sep 17 00:00:00 2001 From: Adam Honse Date: Tue, 26 Nov 2024 00:38:56 -0600 Subject: [PATCH] Fix warnings in ProfileManager.cpp --- ProfileManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProfileManager.cpp b/ProfileManager.cpp index f85bfa7ef..03726f22e 100644 --- a/ProfileManager.cpp +++ b/ProfileManager.cpp @@ -293,7 +293,7 @@ bool ProfileManager::LoadDeviceFromListWithOptions { if (temp_controller->zones[zone_idx].leds_count != load_controller->zones[zone_idx].leds_count) { - load_controller->ResizeZone(zone_idx, temp_controller->zones[zone_idx].leds_count); + load_controller->ResizeZone((int)zone_idx, temp_controller->zones[zone_idx].leds_count); } for(std::size_t segment_idx = 0; segment_idx < temp_controller->zones[zone_idx].segments.size(); segment_idx++) @@ -504,7 +504,7 @@ unsigned char * ProfileManager::GetProfileListDescription() for(unsigned int i = 0; i < num_profiles; i++) { data_size += sizeof (unsigned short); - data_size += strlen(profile_list[i].c_str()) + 1; + data_size += (unsigned int)strlen(profile_list[i].c_str()) + 1; } /*---------------------------------------------------------*\