From 5adf2ecd9ecc066d86fec2a4913f5d9dbff6a386 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 5 Feb 2013 20:47:12 +0000 Subject: [PATCH] Fix printf format specifier in graphics benchmark. Use "%ld" for long arguments to fix asserts under 64 bit architectures. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73475 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- tests/benchmarks/graphics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/benchmarks/graphics.cpp b/tests/benchmarks/graphics.cpp index 4366073f2b..19ebbb6a25 100644 --- a/tests/benchmarks/graphics.cpp +++ b/tests/benchmarks/graphics.cpp @@ -203,7 +203,7 @@ private: const long t = sw.Time(); - wxPrintf("%ld images done in %ldms = %gus/image or %d FPS\n", + wxPrintf("%ld images done in %ldms = %gus/image or %ld FPS\n", opts.numIters, t, (1000. * t)/opts.numIters, (1000*opts.numIters + t - 1)/t); @@ -369,7 +369,7 @@ private: const long t = sw.Time(); - wxPrintf("%ld images done in %ldms = %gus/image or %d FPS\n", + wxPrintf("%ld images done in %ldms = %gus/image or %ld FPS\n", opts.numIters, t, (1000. * t)/opts.numIters, (1000*opts.numIters + t - 1)/t); } @@ -417,7 +417,7 @@ private: const long t = sw.Time(); - wxPrintf("%ld raw bitmaps done in %ldms = %gus/bitmap or %d FPS\n", + wxPrintf("%ld raw bitmaps done in %ldms = %gus/bitmap or %ld FPS\n", opts.numIters, t, (1000. * t)/opts.numIters, (1000*opts.numIters + t - 1)/t); }