aboutsummaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorjbeich <jbeich@FreeBSD.org>2017-02-01 13:28:40 +0800
committerjbeich <jbeich@FreeBSD.org>2017-02-01 13:28:40 +0800
commit31e6619188e29825793d842fd72e62735419aae5 (patch)
tree4dde280320d92a45f6818965e101ff2ab1035b29 /archivers
parentb633e86c477f8af7ed287f7bb27aa44bf381f24a (diff)
downloadfreebsd-ports-gnome-31e6619188e29825793d842fd72e62735419aae5.tar.gz
freebsd-ports-gnome-31e6619188e29825793d842fd72e62735419aae5.tar.zst
freebsd-ports-gnome-31e6619188e29825793d842fd72e62735419aae5.zip
archivers/bicom: unbreak with clang 4.0
In file included from bialib/sufftree.cpp:57: ./bialib/sufftree.h:98:16: error: ordered comparison between pointer and zero ('SuffixTreeModel::LNode *' and 'int') {return(r>0);} ~^~ Reported by: antoine (via exp-run)
Diffstat (limited to 'archivers')
-rw-r--r--archivers/bicom/files/patch-bialib_sufftree.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/archivers/bicom/files/patch-bialib_sufftree.h b/archivers/bicom/files/patch-bialib_sufftree.h
new file mode 100644
index 000000000000..2782c4887989
--- /dev/null
+++ b/archivers/bicom/files/patch-bialib_sufftree.h
@@ -0,0 +1,11 @@
+--- bialib/sufftree.h.orig 2000-10-26 01:51:04 UTC
++++ bialib/sufftree.h
+@@ -95,7 +95,7 @@ class SuffixTreeModel : public Arithmeti
+ {
+ public:
+ bool InEdge()
+- {return(r>0);}
++ {return(r!=NULL);}
+ //After Canonize()ing a point, r >0 <=> proj!=0, i.e., point
+ //is inside an edge
+ INode *ins; //parent of point