Commit 2d516230 authored by dickelbeck's avatar dickelbeck

satisfy compiler warning

parent b08a3bb3
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment