rbt: minor.
This commit is contained in:
parent
49260aea10
commit
a3d2c0a089
@ -137,7 +137,7 @@ function Environment(options) {
|
||||
this.ec = require('./ec');
|
||||
this.lru = require('./lru');
|
||||
this.bloom = require('./bloom');
|
||||
this.bst = require('./bst');
|
||||
this.rbt = require('./rbt');
|
||||
this.lowlevelup = require('./lowlevelup');
|
||||
this.uri = require('./uri');
|
||||
|
||||
|
||||
@ -545,8 +545,8 @@ RBT.prototype.range = function range(gte, lte) {
|
||||
while (!current.isNull()) {
|
||||
if (lte) {
|
||||
// Stop once we hit a key above our lte key.
|
||||
cmp = this.compare(current.key, lte);
|
||||
if (cmp > 0)
|
||||
cmp = this.compare(lte, current.key);
|
||||
if (cmp < 0)
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user