This corrects the asserts which are now triggered when the actual arguments
don't match the format string.
Closes #12265.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65054
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxCoord height;
wxCoord descent;
dc.GetTextExtent( wxT("This is Swiss 18pt text."), &length, &height, &descent );
- text.Printf( wxT("Dimensions are length %ld, height %ld, descent %ld"), length, height, descent );
+ text.Printf( wxT("Dimensions are length %d, height %d, descent %d"), length, height, descent );
dc.DrawText( text, 110, 80 );
text.Printf( wxT("CharHeight() returns: %d"), dc.GetCharHeight() );
if (pinfo.name.empty() || already_exists)
{
pinfo.name.Printf(wxT("%08lx%08x%08x%08lx"),
- wxPtrToUInt(pinfo.window) & 0xffffffff,
+ (unsigned long)(wxPtrToUInt(pinfo.window) & 0xffffffff),
(unsigned int)time(NULL),
#ifdef __WXWINCE__
(unsigned int)GetTickCount(),
wxT("Huge file not supported") );
snum.Printf(wxT("%i"), num);
- output.Printf(wxT("static size_t xml_res_size_") + snum + wxT(" = %zu;\n"), lng);
+ output.Printf(wxT("static size_t xml_res_size_") + snum + wxT(" = %lu;\n"),
+ static_cast<unsigned long>(lng));
output += wxT("static unsigned char xml_res_file_") + snum + wxT("[] = {\n");
// we cannot use string literals because MSVC is dumb wannabe compiler
// with arbitrary limitation to 2048 strings :(