Skip to content

Commit 96caba5

Browse files
committed
fixed off by one
1 parent 0d36ce0 commit 96caba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/binaryParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var parseBits = function(data, bits, offset, callback) {
2323
}
2424

2525
var result = 0;
26-
if ((offset % 8) + bits > 8) {
26+
if ((offset % 8) + bits >= 8) {
2727
result = callback(0, data[offsetBytes] & mask, firstBits);
2828
}
2929

0 commit comments

Comments
 (0)