From 3c5a80b71cb1b2e3c51965e6f9e01123fd847462 Mon Sep 17 00:00:00 2001 From: Romein van Buren Date: Fri, 13 Jun 2025 16:03:19 +0200 Subject: [PATCH] Fix --- fmp/fmp_chunk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fmp/fmp_chunk.go b/fmp/fmp_chunk.go index 903c215..8ae43c9 100644 --- a/fmp/fmp_chunk.go +++ b/fmp/fmp_chunk.go @@ -58,11 +58,11 @@ func (ctx *FmpFile) readChunk(payload []byte) (*FmpChunk, error) { chunk.Length = 4 case 0x0A, 0x0B, 0x0C, 0x0D: - valueLength := 2 * (payload[0] - 0x09) + valueLength := uint64(2 * (payload[0] - 0x09)) chunk.Type = FMP_CHUNK_SIMPLE_KEY_VALUE chunk.Key = parseVarUint64(payload[1 : 1+2]) chunk.Value = payload[3 : 3+valueLength] - chunk.Length = 2 + uint64(valueLength) + chunk.Length = 3 + uint64(valueLength) case 0x0E: if payload[1] == 0xFE {