ports/textproc/randlm/files/patch-BitArray.cpp
Dimitry Andric e44ddcc2e7 Fix build of textproc/randlm with recent versions of clang.
Approved by:	portmgr blanket
Submitted by:	Walter Schwarzenfeld <w.schwarzenfeld@utanet.at>
PR:		216056
MFH:		2017Q4
2017-12-21 21:17:31 +00:00

11 lines
334 B
C++

--- src/LDHT/BitArray.cpp.orig 2017-03-07 01:14:52 UTC
+++ src/LDHT/BitArray.cpp
@@ -115,7 +115,7 @@ uint64_t BitArray::getLength() {
}
bool BitArray::validArrayIndex(uint64_t index) {
- if (index >= 0 && index <= getLength())
+ if (index >= 1 && index <= getLength())
return true;
else
return false;