Fix off-by-one bug in #1108 fix

This commit is contained in:
Nicolas Williams committed 2017-03-01 22:45:02 -06:00
1 parent 65cbaac344
commit 9df19f53e4
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -389,9 +389,9 @@ del(.[2:4],.[0],.[-2:])
# significantly slower under valgrind than .[<large number>] = value.
#
# We range down rather than up so that we have just one realloc.
reduce range(70010;69999;-1) as $i ([]; .[$i] = $i)|.[69999:70003]
reduce range(65540;65536;-1) as $i ([]; .[$i] = $i)|.[65536:]
null
[null,70000,70001,70002]
[null,65537,65538,65539,65540]
#
# Variables