Fix wrong format specifiers in the samples.

Use "%ld" instead of "%d" to format long values, using "%d" results in an
assert failure under LP64 systems as int and long have different sizes there.

Closes #14311.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-05-17 16:10:19 +00:00
parent f2c757c5cc
commit 3ecb4c01f2
2 changed files with 8 additions and 8 deletions

View File

@@ -612,9 +612,9 @@ void MyFrame::OnTestURL(wxCommandEvent& WXUNUSED(event))
}
// Print the contents type and file size
wxLogMessage("Contents type: %s\nFile size: %i\nStarting to download...",
wxLogMessage("Contents type: %s\nFile size: %lu\nStarting to download...",
url.GetProtocol().GetContentType(),
data->GetSize());
static_cast<unsigned long>( data->GetSize() ));
// Get the data
wxStringOutputStream sout;