Fix signedness warning in KasaSmartController

This commit is contained in:
Adam Honse committed 2023-05-01 20:14:36 -05:00
1 parent 0fae77b898
commit 9d97c8ca74
1 file changed
+1 -1
@@ -161,7 +161,7 @@ void KasaSmartController::SetColor(unsigned char red, unsigned char green, unsig
| Normalize case where hue is "-1" undefined |
\*------------------------------------------*/
unsigned int normalized_hue = hsv.hue;
if(hsv.hue == -1)
if(hsv.hue == (int)-1)
{
normalized_hue = 0;
}