satisfy compiler warning

This commit is contained in:
dickelbeck 2007-12-17 21:54:24 +00:00
parent b08a3bb300
commit 2d51623057
1 changed files with 11 additions and 2 deletions

View File

@ -294,8 +294,17 @@ void WinEDA_DrillFrame::SetParams()
wxString ps = m_Choice_Precision->GetStringSelection();
wxString l = ps.substr( 0, 1 );
wxString r = ps.substr( 2, 1 );
l.ToLong( (long*) &s_Precision.m_lhs );
r.ToLong( (long*) &s_Precision.m_rhs );
// a long is not an int on all machines
long lhs;
long rhs;
l.ToLong( &lhs );
r.ToLong( &rhs );
s_Precision.m_lhs = lhs;
s_Precision.m_rhs = rhs;
}