lang/erlang-runtime16: fix build with clang 4.0.

PR:		216615
Submitted by:	Jan Beich
This commit is contained in:
Jimmy Olgeni 2017-02-01 11:32:51 +00:00
parent 1c96ea5d4a
commit f69a88ca81
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=433002
2 changed files with 21 additions and 1 deletions

View file

@ -3,7 +3,7 @@
PORTNAME= erlang
PORTVERSION= 16.b.03.1
PORTREVISION= 9
PORTREVISION= 10
CATEGORIES= lang parallel java
MASTER_SITES= http://www.erlang.org/download/:erlangorg \
http://erlang.stacken.kth.se/download/:erlangorg \

View file

@ -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()) {