Avoid passing float argument for "%f" printf specifier
"%f" takes a double. Eliminates some -Wdouble-promotion warnings.
This commit is contained in:
@@ -349,7 +349,7 @@ bool wxGenericValidator::TransferToWindow()
|
||||
}
|
||||
else if (m_pFloat)
|
||||
{
|
||||
pControl->SetValue(wxString::Format(wxT("%g"), *m_pFloat));
|
||||
pControl->SetValue(wxString::Format(wxS("%g"), double(*m_pFloat)));
|
||||
return true;
|
||||
}
|
||||
else if (m_pDouble)
|
||||
|
Reference in New Issue
Block a user