Skip to content

Commit b7aa2a6

Browse files
committed
fix: pass encode offset
1 parent edbc56c commit b7aa2a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/varint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const encodeTo = (int, target, offset = 0) => {
3232
if (cached) {
3333
target.set(target, offset)
3434
} else {
35-
varint.encode(int, target, 0)
35+
varint.encode(int, target, offset)
3636
}
3737
}
3838

0 commit comments

Comments
 (0)