diff options
Diffstat (limited to 'lang')
-rw-r--r-- | lang/erlang-runtime18/Makefile | 2 | ||||
-rw-r--r-- | lang/erlang-runtime18/files/patch-lib_wx_c__src_wxe__impl.cpp | 20 |
2 files changed, 21 insertions, 1 deletions
diff --git a/lang/erlang-runtime18/Makefile b/lang/erlang-runtime18/Makefile index 5b00d6a445ba..8316a377cdce 100644 --- a/lang/erlang-runtime18/Makefile +++ b/lang/erlang-runtime18/Makefile @@ -3,7 +3,7 @@ PORTNAME= erlang PORTVERSION= 18.3.4.4 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang parallel java MASTER_SITES= http://www.erlang.org/download/:erlangorg \ http://erlang.stacken.kth.se/download/:erlangorg \ diff --git a/lang/erlang-runtime18/files/patch-lib_wx_c__src_wxe__impl.cpp b/lang/erlang-runtime18/files/patch-lib_wx_c__src_wxe__impl.cpp new file mode 100644 index 000000000000..5b1e66586f2f --- /dev/null +++ b/lang/erlang-runtime18/files/patch-lib_wx_c__src_wxe__impl.cpp @@ -0,0 +1,20 @@ +--- lib/wx/c_src/wxe_impl.cpp.orig 2017-01-30 23:13:25 UTC ++++ lib/wx/c_src/wxe_impl.cpp +@@ -666,7 +666,7 @@ void * WxeApp::getPtr(char * bp, wxeMemE + throw wxe_badarg(index); + } + void * temp = memenv->ref2ptr[index]; +- if((index < memenv->next) && ((index == 0) || (temp > NULL))) ++ if((index < memenv->next) && ((index == 0) || (temp != NULL))) + return temp; + else { + throw wxe_badarg(index); +@@ -678,7 +678,7 @@ void WxeApp::registerPid(char * bp, ErlD + if(!memenv) + throw wxe_badarg(index); + void * temp = memenv->ref2ptr[index]; +- if((index < memenv->next) && ((index == 0) || (temp > NULL))) { ++ if((index < memenv->next) && ((index == 0) || (temp != NULL))) { + ptrMap::iterator it; + it = ptr2ref.find(temp); + if(it != ptr2ref.end()) { |