From df7644aa08c467cc0a9e7d4ac4426e7715891319 Mon Sep 17 00:00:00 2001 From: jpk68 Date: Tue, 15 Sep 2026 19:23:35 -0400 Subject: [PATCH] fix: incorrect store32 byte shifts --- lib/src/utils/store_uint8list_extension.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/utils/store_uint8list_extension.dart b/lib/src/utils/store_uint8list_extension.dart index c96163a..c3fcf1c 100644 --- a/lib/src/utils/store_uint8list_extension.dart +++ b/lib/src/utils/store_uint8list_extension.dart @@ -4,8 +4,8 @@ extension StoreToList on Uint8List { void store32(int index, int value) { this[index] = value; this[index + 1] = (value >> 8); - this[index + 2] = (value >> 8); - this[index + 3] = (value >> 8); + this[index + 2] = (value >> 16); + this[index + 3] = (value >> 24); } void store16(int index, int value) {