From ba6138664a92acc153ab32ce404a380ec515f9b4 Mon Sep 17 00:00:00 2001 From: Borewit Date: Tue, 2 Aug 2022 20:53:18 +0200 Subject: [PATCH] Fix offset Resolves #410 --- lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index 55a3421..0e753b1 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -140,7 +140,7 @@ export const INT8: IToken = { put(array: Uint8Array, offset: number, value: number): number { dv(array).setInt8(offset, value); - return offset + 2; + return offset + 1; } };