Fix unsigned comparison warning.
Change-Id: I8544f47177b68cf29ce9fbebb152ca73db6e219d Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@nokia.com>
This commit is contained in:
parent
99be6a5c12
commit
2f4b9b8e42
@ -2260,7 +2260,7 @@ QColor QColor::light(int factor) const
|
|||||||
|
|
||||||
QColor hsv = toHsv();
|
QColor hsv = toHsv();
|
||||||
int s = hsv.ct.ahsv.saturation;
|
int s = hsv.ct.ahsv.saturation;
|
||||||
int v = hsv.ct.ahsv.value;
|
uint v = hsv.ct.ahsv.value;
|
||||||
|
|
||||||
v = (factor*v)/100;
|
v = (factor*v)/100;
|
||||||
if (v > USHRT_MAX) {
|
if (v > USHRT_MAX) {
|
||||||
|
Loading…
Reference in New Issue
Block a user