diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-10-30 12:18:16 +0800 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2023-11-01 15:58:47 +0800 |
commit | a20d9a570006ca1287d544785f4f1a21a7be18c1 (patch) | |
tree | 59307cfeda9a0813bc176d90b3cf518b4989784b | |
parent | daf15a4aafdcd6978916bef2dae1fb2f2f5e62da (diff) |
Fix warning for 32bit builds
When building for 32bit platforms (e.g. Android armv7a), then printing
qsizetype value using printf's %lld format generates a warning because
qsizetype is just an int. This breaks the build, and can't be fixed
by using another placeholder without producing a warning on 64bit
builds. So fix it by casting the qsizetype always to 64bit signed int.
Change-Id: Ie7c0fa8b3a0fe6366ce6fd5b2947f42a3e67c381
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
-rw-r--r-- | src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp b/src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp index 174d95ad64..8a5280d44c 100644 --- a/src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp +++ b/src/widgets/graphicsview/qgraphicsanchorlayout_p.cpp @@ -529,7 +529,7 @@ void AnchorData::dump(int indent) { p->secondEdge->dump(indent+2); } else if (type == Sequential) { const auto *s = static_cast<SequentialAnchorData *>(this); - qDebug("%*s type: sequential(%lld):", indent, "", s->m_edges.size()); + qDebug("%*s type: sequential(%lld):", indent, "", qint64(s->m_edges.size())); for (AnchorData *e : s->m_edges) e->dump(indent + 2); } else { |