Browse Source

Don't check unsigned int about negative values

Abdullah ibn Nadjo 7 years ago
parent
commit
55fe7a9eaf
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/light.c

+ 1
- 1
src/light.c View File

354
     return FALSE;
354
     return FALSE;
355
   }
355
   }
356
 
356
 
357
-  if( hasMinCap && ( minCap < 0 || minCap > rawMax ) )
357
+  if( hasMinCap && minCap > rawMax )
358
   {
358
   {
359
     LIGHT_WARN("invalid minimum cap for controller, ignoring and using 0");
359
     LIGHT_WARN("invalid minimum cap for controller, ignoring and using 0");
360
     minCap = 0;
360
     minCap = 0;