Skip to content

Commit

Permalink
Fix readBitsIntLe(): unsigned right bit shift >>>
Browse files Browse the repository at this point in the history
  • Loading branch information
generalmimon committed Oct 20, 2020
1 parent 9376069 commit 1f8dd95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KaitaiStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ KaitaiStream.prototype.readBitsIntLe = function(n) {
// derive reading result
var res = this.bits & mask;
// remove bottom bits that we've just read by shifting
this.bits >>= n;
this.bits >>>= n;
this.bitsLeft -= n;

return res;
Expand Down

0 comments on commit 1f8dd95

Please sign in to comment.