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