summaryrefslogtreecommitdiff
path: root/textproc/randlm/files/patch-BitArray.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/randlm/files/patch-BitArray.cpp')
-rw-r--r--textproc/randlm/files/patch-BitArray.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/textproc/randlm/files/patch-BitArray.cpp b/textproc/randlm/files/patch-BitArray.cpp
new file mode 100644
index 000000000000..b97ecbc52d28
--- /dev/null
+++ b/textproc/randlm/files/patch-BitArray.cpp
@@ -0,0 +1,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;