Skip to content

Commit ce2a14e

Browse files
committed
Fix - convert BigInt before drawing
1 parent 14717ac commit ce2a14e

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

modules/rntuple.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,17 @@ class TDrawSelectorTuple extends TDrawSelector {
11371137
/** @summary Returns true if field can be used as array */
11381138
isArrayBranch(/* tuple, br */) { return false; }
11391139

1140+
/** @summary Process entry */
1141+
Process(entry) {
1142+
for (let n = 0; n < this.numBranches(); ++n) {
1143+
const name = this.nameOfBranch(n);
1144+
if (typeof this.tgtobj[name] === 'bigint')
1145+
this.tgtobj[name] = Number(this.tgtobj[name]);
1146+
}
1147+
1148+
super.Process(entry);
1149+
}
1150+
11401151
} // class TDrawSelectorTuple
11411152

11421153

0 commit comments

Comments
 (0)