mirror of
https://git.freebsd.org/ports.git
synced 2025-05-21 03:23:10 -04:00
Approved by: portmgr blanket Submitted by: Walter Schwarzenfeld <w.schwarzenfeld@utanet.at> PR: 216056 MFH: 2017Q4
11 lines
334 B
C++
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;
|