aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick')
-rw-r--r--examples/quick/scenegraph/graph/noisynode.cpp2
-rw-r--r--examples/quick/scenegraph/twotextureproviders/xorblender.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/examples/quick/scenegraph/graph/noisynode.cpp b/examples/quick/scenegraph/graph/noisynode.cpp
index d67110f48a..e85757d426 100644
--- a/examples/quick/scenegraph/graph/noisynode.cpp
+++ b/examples/quick/scenegraph/graph/noisynode.cpp
@@ -107,7 +107,7 @@ public:
if (!state.texture || !other->state.texture)
return state.texture ? 1 : -1;
- if (int diff = state.texture->comparisonKey() - other->state.texture->comparisonKey())
+ if (qint64 diff = state.texture->comparisonKey() - other->state.texture->comparisonKey())
return diff;
return 0;
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;