Skip to content

Commit

Permalink
Make CommandCopyLen line up with one another
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrh committed Apr 3, 2024
1 parent 853b5e1 commit 1d8017d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/enc/block_splitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ fn CountLiterals(cmds: &[Command], num_commands: usize) -> usize {
}

fn CommandCopyLen(xself: &Command) -> u32 {
xself.copy_len_ & 0xffffffu32
xself.copy_len_ & 0x1ffffffu32
}

fn CopyLiteralsToByteArray(
Expand Down
2 changes: 1 addition & 1 deletion src/enc/brotli_bit_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2145,7 +2145,7 @@ fn StoreSymbolWithContext<Alloc: alloc::Allocator<u8> + alloc::Allocator<u16>>(
}

fn CommandCopyLen(xself: &Command) -> u32 {
xself.copy_len_ & 0xffffffu32
xself.copy_len_ & 0x1ffffffu32
}

fn CommandDistanceContext(xself: &Command) -> u32 {
Expand Down

0 comments on commit 1d8017d

Please sign in to comment.