aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/scenegraph/twotextureproviders/xorblender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/scenegraph/twotextureproviders/xorblender.cpp')
-rw-r--r--examples/quick/scenegraph/twotextureproviders/xorblender.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/quick/scenegraph/twotextureproviders/xorblender.cpp b/examples/quick/scenegraph/twotextureproviders/xorblender.cpp
index ad959b723d..276625d908 100644
--- a/examples/quick/scenegraph/twotextureproviders/xorblender.cpp
+++ b/examples/quick/scenegraph/twotextureproviders/xorblender.cpp
@@ -117,10 +117,10 @@ int XorBlendMaterial::compare(const QSGMaterial *o) const
if (!state.texture2 || !other->state.texture2)
return state.texture2 ? -1 : 1;
- if (int diff = state.texture1->comparisonKey() - other->state.texture1->comparisonKey())
+ if (qint64 diff = state.texture1->comparisonKey() - other->state.texture1->comparisonKey())
return diff;
- if (int diff = state.texture2->comparisonKey() - other->state.texture2->comparisonKey())
+ if (qint64 diff = state.texture2->comparisonKey() - other->state.texture2->comparisonKey())
return diff;
return 0;