Fix warnings in ProfileManager.cpp

This commit is contained in:
Adam Honse 2024-11-26 00:38:56 -06:00
parent 9d3956c168
commit b0c3856ab4

View file

@ -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;
}
/*---------------------------------------------------------*\