aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShubham Jangra <[email protected]>2018-12-10 01:11:34 +0530
committerShubham Jangra <[email protected]>2018-12-10 01:11:34 +0530
commit16e904592ae4fe0a04ef61d42c9a114c62997c8e (patch)
treed088c762a1547396b028dcc35f311adc6bee983d
parent982d7cc4387a38acd37814a4ae37ea251c008ae0 (diff)
Remove comparison between signed and unsigned integer expressions warning
-rw-r--r--input.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/input.cpp b/input.cpp
index 6451d06..3c97de1 100644
--- a/input.cpp
+++ b/input.cpp
@@ -1507,7 +1507,7 @@ public:
if (!seat->isDragTouch()) {
return false;
}
- if (m_touchId != id) {
+ if (static_cast<quint32>(m_touchId) == id) {
return true;
}
seat->setTimestamp(time);
@@ -1528,7 +1528,7 @@ public:
// associated with by implementing a key-value getter in KWayland.
m_touchId = id;
}
- if (m_touchId != id) {
+ if (static_cast<quint32>(m_touchId) == id) {
return true;
}
seat->setTimestamp(time);
@@ -1564,7 +1564,7 @@ public:
seat->touchUp(kwaylandId);
input()->touch()->removeId(id);
}
- if (m_touchId == id) {
+ if (static_cast<quint32>(m_touchId) == id) {
m_touchId = -1;
}
return true;