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

Use binrw padding instead of creating a temporary u32

This commit is contained in:
Joshua Goins 2025-03-06 16:42:19 -05:00
parent 81ffadd870
commit f0554c8c27

View file

@ -76,12 +76,9 @@ pub struct IndexHashTableEntry {
#[br(temp)] #[br(temp)]
#[bw(ignore)] #[bw(ignore)]
#[brw(pad_after = 4)]
data: u32, data: u32,
#[br(temp)]
#[bw(ignore)]
padding: u32,
#[br(calc = (data & 0b1) == 0b1)] #[br(calc = (data & 0b1) == 0b1)]
#[bw(ignore)] #[bw(ignore)]
pub is_synonym: bool, pub is_synonym: bool,