Skip to content

Commit 9860999

Browse files
committed
Fix bit shifting for readLengthEncodedInteger
1 parent b744574 commit 9860999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,7 @@ func readLengthEncodedInteger(b []byte) (uint64, bool, int) {
657657
case 0xfe:
658658
return uint64(b[1]) | uint64(b[2])<<8 | uint64(b[3])<<16 |
659659
uint64(b[4])<<24 | uint64(b[5])<<32 | uint64(b[6])<<40 |
660-
uint64(b[7])<<48 | uint64(b[8])<<54,
660+
uint64(b[7])<<48 | uint64(b[8])<<56,
661661
false, 9
662662
}
663663

0 commit comments

Comments
 (0)