From: Mikko Rasa Date: Thu, 3 Dec 2009 08:29:35 +0000 (+0000) Subject: Fix compilation on 64-bit systems X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=22d13842e2bc956f941b6372045c1aa6a062bc10;p=libs%2Fgui.git Fix compilation on 64-bit systems --- 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;