From e705b36af5efa39586340b64e0247700380a5ef5 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 21 Nov 2013 00:07:30 +0000 Subject: [PATCH] Fix wrong printf() format specifiers in the joystick sample. Use "%ld" for the long values, not "%d", they are not the same under LP64 platforms. Closes #15691. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@75253 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/joytest/joytest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/joytest/joytest.cpp b/samples/joytest/joytest.cpp index c6e9bd262a..9404c3d8b2 100644 --- a/samples/joytest/joytest.cpp +++ b/samples/joytest/joytest.cpp @@ -159,9 +159,9 @@ void MyCanvas::OnJoystickEvent(wxJoystickEvent& event) #if wxUSE_STATUSBAR wxString buf; if (event.ButtonDown()) - buf.Printf(wxT("Joystick (%d, %d) #%i Fire!"), xpos, ypos, event.GetButtonChange()); + buf.Printf(wxT("Joystick (%ld, %ld) #%i Fire!"), xpos, ypos, event.GetButtonChange()); else - buf.Printf(wxT("Joystick (%d, %d) "), xpos, ypos); + buf.Printf(wxT("Joystick (%ld, %ld) "), xpos, ypos); /* for(int i = 0; i < nButtons; ++i)