1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00

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)
This commit is contained in:
Jan Beich 2017-02-01 05:28:40 +00:00
parent f26bc72ae5
commit b8a1188a89
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=432984

View File

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