1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-04-20 03:37:47 +00:00

Convert more signed integers to unsigned variants

Should help protect against future patch troubles
This commit is contained in:
Joshua Goins 2023-10-05 12:33:44 -04:00
parent 267feae8cf
commit 0621ce03d7

View file

@ -248,8 +248,8 @@ struct SqpkFileOperationData {
#[br(pad_after = 2)] #[br(pad_after = 2)]
operation: SqpkFileOperation, operation: SqpkFileOperation,
offset: i64, offset: u64,
file_size: i64, file_size: u64,
#[br(temp)] #[br(temp)]
path_length: u32, path_length: u32,
@ -285,7 +285,7 @@ struct SqpkTargetInfo {
#[br(pad_before = 3)] #[br(pad_before = 3)]
platform: PlatformId, platform: PlatformId,
region: Region, region: Region,
#[br(map = | x : i16 | x == 1)] #[br(map = | x : u16 | x == 1)]
is_debug: bool, is_debug: bool,
version: u16, version: u16,
#[br(little)] #[br(little)]