Skip to content

Commit

Permalink
Make a couple of functions safe to call
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Nov 12, 2024
1 parent bb88fad commit b18da0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bzlib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ macro_rules! BZ_UPDATE_CRC {
};
}

unsafe fn add_pair_to_block(s: &mut EState) {
fn add_pair_to_block(s: &mut EState) {
let ch: u8 = s.state_in_ch as u8;

for _ in 0..s.state_in_len {
Expand Down Expand Up @@ -687,7 +687,7 @@ unsafe fn add_pair_to_block(s: &mut EState) {
};
}

unsafe fn flush_rl(s: &mut EState) {
fn flush_rl(s: &mut EState) {
if s.state_in_ch < 256 {
add_pair_to_block(s);
}
Expand Down

0 comments on commit b18da0f

Please sign in to comment.