Skip to content

Commit bc9e30a

Browse files
committed
remove the padding fields
1 parent 1e014e8 commit bc9e30a

File tree

2 files changed

+2
-17
lines changed

2 files changed

+2
-17
lines changed

libbz2-rs-sys/src/bzlib.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -573,20 +573,15 @@ pub(crate) struct SaveArea {
573573
pub groupNo: i32,
574574
pub groupPos: u8,
575575
pub nextSym: i32,
576-
pub nblockMAX100k: u8,
577576
pub nblock: u32,
578577
pub es: i32,
579-
pub logN: u8, // the log_2 of N
580578
pub zvec: i32,
581-
pub _padding2: [u8; 2],
582579
pub nSelectors: u16,
583-
pub _padding4: [u8; 3],
584580
pub zn: u8,
585-
pub _padding1: [u8; 3],
586581
pub nGroups: u8,
587-
pub _padding3: [u8; 3],
588582
pub curr: u8,
589-
pub _padding0: [u8; 3],
583+
pub nblockMAX100k: u8,
584+
pub logN: u8, // the log_2 of N
590585
pub zj: bool,
591586
pub gMinlen: u8,
592587
pub gSel: u8,

libbz2-rs-sys/src/decompress.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,6 @@ pub(crate) fn decompress(
175175
mut gLimit,
176176
mut gBase,
177177
mut gPerm,
178-
_padding0,
179-
_padding1,
180-
_padding2,
181-
_padding3,
182-
_padding4,
183178
} = s.save;
184179

185180
let ret_val: ReturnCode = 'save_state_and_return: {
@@ -1338,11 +1333,6 @@ pub(crate) fn decompress(
13381333
gLimit,
13391334
gBase,
13401335
gPerm,
1341-
_padding0,
1342-
_padding1,
1343-
_padding2,
1344-
_padding3,
1345-
_padding4,
13461336
};
13471337

13481338
ret_val

0 commit comments

Comments
 (0)