From a0bb0df5d7926faf934d139968928e96bbcba7ef Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 18 Jul 2013 10:07:18 +0000 Subject: [PATCH] Don't assume that KeySym is always defined as long in wxGTK. Apparently this is not the case when using Wayland and using "%ld" to print it out results in an assert failure. Closes #15351. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74573 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index d57145134e..854937fed3 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -755,10 +755,10 @@ wxTranslateGTKKeyEventToWx(wxKeyEvent& event, KeySym keysym = gdk_event->keyval; - wxLogTrace(TRACE_KEYS, wxT("Key %s event: keysym = %ld"), + wxLogTrace(TRACE_KEYS, wxT("Key %s event: keysym = %lu"), event.GetEventType() == wxEVT_KEY_UP ? wxT("release") : wxT("press"), - keysym); + static_cast(keysym)); long key_code = wxTranslateKeySymToWXKey(keysym, false /* !isChar */);