summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-02-05 11:16:58 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2017-02-05 11:16:58 +0100
commit23f0882bf1e40396de530e44255ce5987b5248ff (patch)
tree68eaf92f6a3e53d464a619d604670e16ffb29fcd
parent6eb1df1c868175027c09e8e8fe04e1393405505f (diff)
Fix information loss on pointer to int cast.
-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;