summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qplatformcursor.cpp
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2018-06-05 13:13:12 +0200
committerLiang Qi <liang.qi@qt.io>2018-06-06 11:36:33 +0000
commit62abbe34b84a1c224d27f3eb2f735749f5f24b4f (patch)
treeec1eee6ce05a917084d6feb656d54c6849ab9215 /src/gui/kernel/qplatformcursor.cpp
parent8c33b798237b95d37fe4d60ae36f0d8067504429 (diff)
Fix build for Android with android-clang in r17
Task-number: QTBUG-67464 Change-Id: Ib971a5da82b31bce9ac1c9ac623ad7d5302cfaec Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'src/gui/kernel/qplatformcursor.cpp')
-rw-r--r--src/gui/kernel/qplatformcursor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qplatformcursor.cpp b/src/gui/kernel/qplatformcursor.cpp
index df78e7d896..bab26f6028 100644
--- a/src/gui/kernel/qplatformcursor.cpp
+++ b/src/gui/kernel/qplatformcursor.cpp
@@ -549,7 +549,7 @@ void QPlatformCursorImage::createSystemCursor(int id)
void QPlatformCursorImage::set(Qt::CursorShape id)
{
QPlatformCursorImage *cursor = 0;
- if (id >= 0 && id <= Qt::LastCursor) {
+ if (unsigned(id) <= unsigned(Qt::LastCursor)) {
if (!systemCursorTable[id])
createSystemCursor(id);
cursor = systemCursorTable[id];