summaryrefslogtreecommitdiff
path: root/plugingui/nativewindow_x11.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/nativewindow_x11.cc')
-rw-r--r--plugingui/nativewindow_x11.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugingui/nativewindow_x11.cc b/plugingui/nativewindow_x11.cc
index 5bbf8ae..92e1f3a 100644
--- a/plugingui/nativewindow_x11.cc
+++ b/plugingui/nativewindow_x11.cc
@@ -512,7 +512,7 @@ void NativeWindowX11::allocateShmImage(std::size_t width, std::size_t height)
// Attach share memory bufer
void* shm_addr = shmat(shm_id, nullptr, 0);
- if(reinterpret_cast<int>(shm_addr) == -1)
+ if(reinterpret_cast<long int>(shm_addr) == -1)
{
ERR(x11, "shmat failed: %s", strerror(errno));
return;