aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2021-05-27 09:47:40 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-05-28 11:57:44 +0000
commit4344223a11bd2d6a494e6ddbe2949a291b4f97c8 (patch)
tree8e3395c4cf0dba7ed99fc9538c4e50c82f8959bf
parentc7f74d96e4f2260b9fe96ce482adccc79c7ae7da (diff)
Fix MSVC warning C4334
qquickparticlesystem.cpp(217): warning C4334: '<<': result of 32-bit shift implicitly converted to 64 bits (was 64-bit shift intended?) Change-Id: If17ecb2003995d54fce4e0ed58c8e2b183928dc3 Reviewed-by: Andy Nichols <andy.nichols@qt.io> (cherry picked from commit ff8392d4ba28ebd6cb2eef584773a75aa8382392) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/particles/qquickparticlesystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/particles/qquickparticlesystem.cpp b/src/particles/qquickparticlesystem.cpp
index 4eabbde970..5806d7914c 100644
--- a/src/particles/qquickparticlesystem.cpp
+++ b/src/particles/qquickparticlesystem.cpp
@@ -214,7 +214,7 @@ QQuickParticleDataHeap::QQuickParticleDataHeap()
void QQuickParticleDataHeap::grow() //###Consider automatic growth vs resize() calls from GroupData
{
- m_data.resize(1 << ++m_size);
+ m_data.resize(qsizetype(1) << ++m_size);
}
void QQuickParticleDataHeap::insert(QQuickParticleData* data)