Fix unsigned-signed comparison with touch id in input.cpp
The id we internally have is a signed int and might be negative, but the touch id we get is unsigned. We can savely cast the unsigned to signed as touch ids are recycled and more than 10 touch points is unlikely to be useful.icc-effect-5.14.5
parent
67f7e8da34
commit
f9baa22f0d
|
@ -602,7 +602,7 @@ public:
|
|||
if (input()->touch()->decorationPressId() == -1) {
|
||||
return false;
|
||||
}
|
||||
if (input()->touch()->decorationPressId() != id) {
|
||||
if (input()->touch()->decorationPressId() != qint32(id)) {
|
||||
// ignore, but filter out
|
||||
return true;
|
||||
}
|
||||
|
@ -622,7 +622,7 @@ public:
|
|||
if (input()->touch()->decorationPressId() == -1) {
|
||||
return false;
|
||||
}
|
||||
if (input()->touch()->decorationPressId() != id) {
|
||||
if (input()->touch()->decorationPressId() != qint32(id)) {
|
||||
// ignore, but filter out
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue