From 0bce0f37e4eb964db64c2b603de522371ad21d71 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 23 Jun 2019 16:40:24 -0700 Subject: [PATCH] pcbnew: Avoid wxassert in message wxstring::Printf() needs size_t cast to acceptable type or it gives an assertion in debug mode. (cherry picked from commit e8ce0ba6ef9de46e2162bb773bc723c77cee40a4) --- pcbnew/dialogs/dialog_track_via_properties.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/dialogs/dialog_track_via_properties.cpp b/pcbnew/dialogs/dialog_track_via_properties.cpp index 66bc976b72..6424d18113 100644 --- a/pcbnew/dialogs/dialog_track_via_properties.cpp +++ b/pcbnew/dialogs/dialog_track_via_properties.cpp @@ -318,9 +318,9 @@ bool DIALOG_TRACK_VIA_PROPERTIES::confirmPadChange( const std::vector& c } else { - msg.Printf( _( "This will change the net assigned to %d connected pads to %s.\n" + msg.Printf( _( "This will change the net assigned to %lu connected pads to %s.\n" "Do you wish to continue?" ), - changingPads.size(), + static_cast( changingPads.size() ), m_netSelector->GetValue() ); }