Correct printf() format specifiers for long variables in life demo.

Fix asserts in 64 bit builds due to using %u (expecting 32 bit values on a
typical Unix LP64 platform) for 64 bit long values.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2010-09-29 22:01:18 +00:00
parent a65b84f434
commit 9bc95da04c

View File

@ -354,10 +354,10 @@ void LifeFrame::UpdateInfoText()
{
wxString msg;
msg.Printf(_(" Generation: %u (T: %u ms), Population: %u "),
msg.Printf(_(" Generation: %lu (T: %lu ms), Population: %lu "),
m_tics,
m_topspeed? 0 : m_interval,
m_life->GetNumCells());
static_cast<unsigned long>(m_life->GetNumCells()));
m_text->SetLabel(msg);
}