From 22d13842e2bc956f941b6372045c1aa6a062bc10 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 3 Dec 2009 08:29:35 +0000 Subject: [PATCH] Fix compilation on 64-bit systems --- source/gbase/window.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/gbase/window.cpp b/source/gbase/window.cpp index 22d73b1..0891360 100644 --- a/source/gbase/window.cpp +++ b/source/gbase/window.cpp @@ -49,7 +49,7 @@ LRESULT CALLBACK wndproc_(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) #else Bool match_event_type(Display *, XEvent *event, XPointer arg) { - return event->type==reinterpret_cast(arg); + return event->type==*reinterpret_cast(arg); } #endif @@ -252,7 +252,8 @@ void Window::reconfigure(const WindowOptions &opts) // Wait for the window to be unmapped. This makes window managers happy. XEvent ev; - XPeekIfEvent(dpy, &ev, match_event_type, reinterpret_cast(UnmapNotify)); + int ev_type=UnmapNotify; + XPeekIfEvent(dpy, &ev, match_event_type, reinterpret_cast(&ev_type)); } XSetWindowAttributes attr; -- 2.43.0