rbt: minor.

This commit is contained in:
Christopher Jeffrey 2016-07-03 10:09:28 -07:00
parent 49260aea10
commit a3d2c0a089
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
2 changed files with 3 additions and 3 deletions

View File

@ -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');

View File

@ -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;
}