aboutsummaryrefslogtreecommitdiff
path: root/cad/fritzing/files/patch-src_items_itembase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cad/fritzing/files/patch-src_items_itembase.cpp')
-rw-r--r--cad/fritzing/files/patch-src_items_itembase.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/cad/fritzing/files/patch-src_items_itembase.cpp b/cad/fritzing/files/patch-src_items_itembase.cpp
new file mode 100644
index 000000000000..3c9ce55a0bbc
--- /dev/null
+++ b/cad/fritzing/files/patch-src_items_itembase.cpp
@@ -0,0 +1,20 @@
+--- src/items/itembase.cpp.orig 2025-04-02 10:33:24 UTC
++++ src/items/itembase.cpp
+@@ -55,6 +55,8 @@ along with Fritzing. If not, see <http://www.gnu.org/
+ #include <QClipboard>
+ #include <qmath.h>
+
++#include <cstdint>
++
+ /////////////////////////////////
+
+ static QRegularExpression NumberMatcher;
+@@ -1999,7 +2001,7 @@ void ItemBase::debugInfo2(const QString & msg) const
+ .arg(this->viewLayerID())
+ .arg(this->viewLayerPlacement())
+ .arg(this->wireFlags())
+- .arg((long) dynamic_cast<const QGraphicsItem *>(this), 0, 16)
++ .arg(static_cast<long>(reinterpret_cast<std::uintptr_t>(dynamic_cast<const QGraphicsItem *>(this))), 0, 16)
+ .arg(m_viewID)
+ .arg(this->zValue())
+ .arg(this->pos().x())