Fix some build warnings

This commit is contained in:
Adam Honse 2021-07-28 17:20:26 -05:00
parent 87ba08602f
commit ac921f8a29
8 changed files with 13 additions and 18 deletions

View file

@ -73,7 +73,7 @@ void DetectSinowealthMouse(hid_device_info* info, const std::string& name)
}
else
{
for(int i = 0; i < usage_count; ++i)
for(unsigned int i = 0; i < usage_count; ++i)
{
if(usages[i])
{
@ -109,7 +109,7 @@ void DetectSinowealthKeyboard(hid_device_info* info, const std::string& name)
}
else
{
for(int i = 0; i < usage_count; ++i)
for(unsigned int i = 0; i < usage_count; ++i)
{
if(usages[i])
{

View file

@ -151,7 +151,7 @@ void SinowealthKeyboardController::SetLEDsDirect(std::vector<RGBColor> colors)
/*-----------------------------------------------------*\
| Fill in color data |
\*-----------------------------------------------------*/
for(int i = 0; i < num_keys; i++)
for(unsigned int i = 0; i < num_keys; i++)
{
buf[tkl_keys_per_key_index[i]] = RGBGetBValue(colors[i]);
buf[tkl_keys_per_key_index[i] + 0x7E] = RGBGetGValue(colors[i]);