]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix timing format string in the test suite.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Oct 2010 10:41:44 +0000 (10:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 4 Oct 2010 10:41:44 +0000 (10:41 +0000)
wxStopWatch::Time() returns a long value so use %ld, not %d.

This fixes assert failure when using "-t" option with the test suite under 64
bit Unix architectures.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

tests/test.cpp

index a8208adb1a266f940e69fc749396e971d7e1edad..1e59f598067c3ac4e6e17fc12c89adeadb4e3ad4 100644 (file)
@@ -209,7 +209,7 @@ public:
         m_watch.Pause();
         wxPrintf(GetResultStr(m_result));
         if (m_timing)
-            wxPrintf("  %6d ms", m_watch.Time());
+            wxPrintf("  %6ld ms", m_watch.Time());
         wxPrintf("\n");
     }