Skip to content

Commit dc236d9

Browse files
committed
Merge branch 'master' of github.com:usnistgov/jsfive
2 parents 826c0e5 + b336628 commit dc236d9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

esm/btree.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -461,14 +461,15 @@ export class BTreeV2 extends AbstractBTree {
461461
let fmts = this.address_formats.get(node_level);
462462
if (node_level != 0) {
463463
let [offset_size, num1_size, num2_size, offset_fmt, num1_fmt, num2_fmt] = fmts;
464-
for (let j=0; j<=nrecords; j++) {
464+
for (let j=0; j<nrecords; j++) {
465465
let address_offset = struct.unpack_from(offset_fmt, this.fh, offset)[0];
466466
offset += offset_size;
467467
let num1 = struct.unpack_from(num1_fmt, this.fh, offset)[0];
468468
offset += num1_size;
469469
let num2 = num1;
470470
if (num2_size > 0) {
471471
num2 = struct.unpack_from(num2_fmt, this.fh, offset)[0];
472+
offset += num2_size;
472473
}
473474
addresses.push([address_offset, num1, num2]);
474475
}

esm/dataobjects.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ export class DataObjects {
566566
//""" Retrieve links from symbol table message. """
567567
let heap = new FractalHeap(this.fh, heap_address);
568568
let btree;
569-
if (order_btree_address != UNDEFINED_ADDRESS) {
569+
if (order_btree_address != null) {
570570
btree = new BTreeV2GroupOrders(this.fh, order_btree_address);
571571
}
572572
else {

0 commit comments

Comments
 (0)