From 23f0882bf1e40396de530e44255ce5987b5248ff Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 5 Feb 2017 11:16:58 +0100 Subject: Fix information loss on pointer to int cast. --- plugingui/nativewindow_x11.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugingui/nativewindow_x11.cc') 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(shm_addr) == -1) + if(reinterpret_cast(shm_addr) == -1) { ERR(x11, "shmat failed: %s", strerror(errno)); return; -- cgit v1.2.3