Skip to content

Commit

Permalink
Fix high tag number decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
highmtworks committed Jan 16, 2021
1 parent 7c54cca commit 987c1f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function decode(buffer) {
do {
byte = buffer.readUInt8(bytesRead);
bytesRead += 1;
tagCode = (tagCode << 8) | (byte & 0x7f);
tagCode = (tagCode << 7) | (byte & 0x7f);
} while (byte & 0x80);
}

Expand Down

0 comments on commit 987c1f9

Please sign in to comment.