2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 01:22:00 +00:00

Reject reverse range noderange

It has been stated that no one would want to do this
on purpose, and thus it should reject. The rationale
being that if no one wants to do this, but did it
anyway, they presumably made a mistake.

So now such attempts will be blocked.

Keep the dead logic around for now
in case a future opinion changes things back.
This commit is contained in:
Jarrod Johnson 2022-02-11 15:20:41 -05:00
parent bd428790ce
commit 93a5496899

View File

@ -196,6 +196,7 @@ class NodeRange(object):
leftnum = int(leftbits[idx])
rightnum = int(rightbits[idx])
if leftnum > rightnum:
return self.failorreturn(seqrange)
width = len(rightbits[idx])
minnum = rightnum
maxnum = leftnum + 1 # range goes to n-1...