mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-25 11:01:09 +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:
parent
bd428790ce
commit
93a5496899
@ -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...
|
||||
|
Loading…
Reference in New Issue
Block a user