opnsense-ports/textproc/randlm/files/patch-BitArray.cpp
Franco Fichtner 719da42a4e */*: sync with upstream
Taken from: HardenedBSD
2017-12-21 14:30:48 +01: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;