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)