Skip to content

Commit

Permalink
Work around borrow checking change
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonSapin committed Jan 12, 2018
1 parent 5c1ee60 commit 1f2d51e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "brotli"
version = "1.1.1"
version = "1.1.2"
authors = ["Daniel Reiter Horn <danielrh@dropbox.com>", "The Brotli Authors"]
description = "A brotli decompressor that with an interface avoiding the rust stdlib. This makes it suitable for embedded devices and kernels. It is designed with a pluggable allocator so that the standard lib's allocator may be employed. The default build also includes a stdlib allocator and stream interface. Disable this with --features=no-stdlib. All included code is safe."
license = "BSD-3-Clause/MIT"
Expand Down Expand Up @@ -29,4 +29,4 @@ no-stdlib = ["alloc-no-stdlib/no-stdlib", "brotli-decompressor/no-stdlib"]
external-literal-probability = []
disable-timer = ["brotli-decompressor/disable-timer"]
benchmark = ["brotli-decompressor/benchmark"]
vector_scratch_space = []
vector_scratch_space = []
4 changes: 2 additions & 2 deletions src/enc/backward_references.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,9 @@ impl<T: SliceWrapperMut<u32> + SliceWrapper<u32> + BasicHashComputer> AnyHasher
out,
1i32);
}
let bucket_sweep = self.buckets_.BUCKET_SWEEP() as usize;
(*self).buckets_.slice_mut()[(key as (usize)).wrapping_add((cur_ix >> 3)
.wrapping_rem(self.buckets_.BUCKET_SWEEP() as
usize))] = cur_ix as (u32);
.wrapping_rem(bucket_sweep))] = cur_ix as (u32);
is_match_found != 0

}
Expand Down

0 comments on commit 1f2d51e

Please sign in to comment.