]> git.tdb.fi Git - libs/gui.git/commitdiff
Fix compilation on 64-bit systems
authorMikko Rasa <tdb@tdb.fi>
Thu, 3 Dec 2009 08:29:35 +0000 (08:29 +0000)
committerMikko Rasa <tdb@tdb.fi>
Thu, 3 Dec 2009 08:29:35 +0000 (08:29 +0000)
source/gbase/window.cpp

index 22d73b1da2ada5fe7876e82f0653d030a576450a..089136003529f2fbd56a0c002ddcccdde88304ee 100644 (file)
@@ -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<int>(arg);
+       return event->type==*reinterpret_cast<int *>(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<XPointer>(UnmapNotify));
+                       int ev_type=UnmapNotify;
+                       XPeekIfEvent(dpy, &ev, match_event_type, reinterpret_cast<char *>(&ev_type));
                }
 
                XSetWindowAttributes attr;