1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00

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

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

View File

@ -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 \

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