From: Vadim Zeitlin Date: Sun, 13 Apr 2003 01:48:17 +0000 (+0000) Subject: fixed a printf() format warning X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a25d51afbc670f0aed89bf58c230203a40a1a865 fixed a printf() format warning git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/docview.cpp b/src/common/docview.cpp index a88869b84f..4020edb7d5 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -2097,13 +2097,13 @@ void wxFileHistory::Load(wxConfigBase& config) { m_fileHistoryN = 0; wxString buf; - buf.Printf(wxT("file%d"), m_fileHistoryN+1); + buf.Printf(wxT("file%d"), (int)m_fileHistoryN+1); wxString historyFile; while ((m_fileHistoryN < m_fileMaxFiles) && config.Read(buf, &historyFile) && (historyFile != wxT(""))) { m_fileHistory[m_fileHistoryN] = copystring((const wxChar*) historyFile); m_fileHistoryN ++; - buf.Printf(wxT("file%d"), m_fileHistoryN+1); + buf.Printf(wxT("file%d"), (int)m_fileHistoryN+1); historyFile = wxT(""); } AddFilesToMenu();