From c07a38b91bab5c480db7f30a1a719ab8858d77cf Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Mon, 23 Nov 2020 21:26:20 -0500 Subject: [PATCH] Fix MSVC compilation error with wxString fed to strtol --- pcbnew/netlist_reader/kicad_netlist_reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/netlist_reader/kicad_netlist_reader.cpp b/pcbnew/netlist_reader/kicad_netlist_reader.cpp index 6ff60edff8..b71399ff79 100644 --- a/pcbnew/netlist_reader/kicad_netlist_reader.cpp +++ b/pcbnew/netlist_reader/kicad_netlist_reader.cpp @@ -248,7 +248,7 @@ void KICAD_NETLIST_PARSER::parseNet() } } - if( strtol( code, NULL, 10 ) >= 1 ) + if( strtol( code.c_str(), NULL, 10 ) >= 1 ) { if( name.IsEmpty() ) // Give a dummy net name like N-000009 name = wxT("N-00000") + code;