Skip to content

Commit

Permalink
fix 64-bit number decoding for Safari / IE
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 4, 2022
1 parent e18c18e commit d5badd5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions html5/js/lib/rencode.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ function rdecode_intq(dec) {
}
else {
//oh, IE...
const left = this.getUint32(byteOffset);
const right = this.getUint32(byteOffset+4);
const left = dv.getInt32(0);
const right = dv.getUint32(4);
s = 2**32*left + right;
}
dec.pos += 9;
Expand Down

0 comments on commit d5badd5

Please sign in to comment.