Avoid passing float argument for "%f" printf specifier
"%f" takes a double. Eliminates some -Wdouble-promotion warnings.
This commit is contained in:
@@ -224,7 +224,7 @@ void MyFrame::OnTestDialog(wxCommandEvent& WXUNUSED(event))
|
||||
m_listbox->Append(wxString::Format("integer value: %d", g_data.m_intValue));
|
||||
m_listbox->Append(wxString::Format("small int value: %u", g_data.m_smallIntValue));
|
||||
m_listbox->Append(wxString::Format("double value: %.3f", g_data.m_doubleValue));
|
||||
m_listbox->Append(wxString::Format("percent value: %.4f", g_data.m_percentValue));
|
||||
m_listbox->Append(wxString::Format("percent value: %.4f", double(g_data.m_percentValue)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user