Skip to content

Commit

Permalink
Merge branch 'master' of github.com:usnistgov/jsfive
Browse files Browse the repository at this point in the history
  • Loading branch information
bmaranville committed Oct 19, 2022
2 parents 826c0e5 + b336628 commit dc236d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion esm/btree.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,14 +461,15 @@ export class BTreeV2 extends AbstractBTree {
let fmts = this.address_formats.get(node_level);
if (node_level != 0) {
let [offset_size, num1_size, num2_size, offset_fmt, num1_fmt, num2_fmt] = fmts;
for (let j=0; j<=nrecords; j++) {
for (let j=0; j<nrecords; j++) {
let address_offset = struct.unpack_from(offset_fmt, this.fh, offset)[0];
offset += offset_size;
let num1 = struct.unpack_from(num1_fmt, this.fh, offset)[0];
offset += num1_size;
let num2 = num1;
if (num2_size > 0) {
num2 = struct.unpack_from(num2_fmt, this.fh, offset)[0];
offset += num2_size;
}
addresses.push([address_offset, num1, num2]);
}
Expand Down
2 changes: 1 addition & 1 deletion esm/dataobjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ export class DataObjects {
//""" Retrieve links from symbol table message. """
let heap = new FractalHeap(this.fh, heap_address);
let btree;
if (order_btree_address != UNDEFINED_ADDRESS) {
if (order_btree_address != null) {
btree = new BTreeV2GroupOrders(this.fh, order_btree_address);
}
else {
Expand Down

0 comments on commit dc236d9

Please sign in to comment.