pkgsrc/x11/wxhaskell/patches/patch-wxc_src_ewxw_eljcolour.cpp
joerg e3aa8dd4b7 Build shared library. Fix soname passing. Fix format strings. Explicitly
truncate pointers (XXX revisit by somewhere with more Haskellfu). Fix
bit masking.
2015-02-20 23:39:31 +00:00

13 lines
442 B
C++

$NetBSD: patch-wxc_src_ewxw_eljcolour.cpp,v 1.1 2015/02/20 23:39:31 joerg Exp $
--- wxc/src/ewxw/eljcolour.cpp.orig 2015-02-20 23:00:58.000000000 +0000
+++ wxc/src/ewxw/eljcolour.cpp
@@ -93,7 +93,7 @@ EWXWEXPORT(void, wxColour_SetByName)(voi
EWXWEXPORT(int, wxColour_ValidName)(void* _name)
{
- return (int) wxTheColourDatabase->FindColour ((char*)_name);
+ return (int)(intptr_t) wxTheColourDatabase->FindColour ((char*)_name);
}
}