Fix MSVC compilation error with wxString fed to strtol

This commit is contained in:
Marek Roszko 2020-11-23 21:26:20 -05:00
parent 45598f2933
commit c07a38b91b
1 changed files with 1 additions and 1 deletions

View File

@ -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;