From 0621ce03d7b034a1d5941f8b890bda970a69a2da Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Thu, 5 Oct 2023 12:33:44 -0400 Subject: [PATCH] Convert more signed integers to unsigned variants Should help protect against future patch troubles --- src/patch.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/patch.rs b/src/patch.rs index b7aed32..c3f215e 100755 --- a/src/patch.rs +++ b/src/patch.rs @@ -248,8 +248,8 @@ struct SqpkFileOperationData { #[br(pad_after = 2)] operation: SqpkFileOperation, - offset: i64, - file_size: i64, + offset: u64, + file_size: u64, #[br(temp)] path_length: u32, @@ -285,7 +285,7 @@ struct SqpkTargetInfo { #[br(pad_before = 3)] platform: PlatformId, region: Region, - #[br(map = | x : i16 | x == 1)] + #[br(map = | x : u16 | x == 1)] is_debug: bool, version: u16, #[br(little)]