← Back to team overview

kicad-developers team mailing list archive

[PATCH] Assertion in pcbnew/dialogs/dialog_select_net_from_list.cpp

 

This patch fixes a format string assertion.

diff --git a/pcbnew/dialogs/dialog_select_net_from_list.cpp b/pcbnew/dialogs/dialog_select_net_from_list.cpp
index f4539aa..fb70b90 100644
--- a/pcbnew/dialogs/dialog_select_net_from_list.cpp
+++ b/pcbnew/dialogs/dialog_select_net_from_list.cpp
@@ -161,7 +161,7 @@ void DIALOG_SELECT_NET_FROM_LIST::buildNetsList()

         if( netcode )
         {
-            txt.Printf( wxT( "%u" ), net->m_PadInNetList.size() );
+            txt.Printf( wxT( "%u" ), (unsigned) net->m_PadInNetList.size() );
             m_netsListGrid->SetCellValue( row_idx, COL_NETINFO, txt );
         }
         else    // For the net 0 (unconnected pads), the pad count is not known



Follow ups