summaryrefslogtreecommitdiff
path: root/textproc/randlm/files/patch-BitArray.cpp
blob: b97ecbc52d28f8a235b29b2daf8c0646999f2be4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- 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;