Skip to content

Commit

Permalink
fix incorrect check
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertdev committed Feb 17, 2024
1 parent 70cdf34 commit 1461c5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zlib-rs/src/crc32/pclmulqdq.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ impl Accumulator {
// bytes of input is needed for the aligning load that occurs. If there's an initial CRC, to
// carry it forward through the folded CRC there must be 16 - src % 16 + 16 bytes available, which
// by definition can be up to 15 bytes + one full vector load. */
assert!(src.len() >= 31 || init_crc != CRC32_INITIAL_VALUE);
assert!(src.len() >= 31 || init_crc == CRC32_INITIAL_VALUE);

if COPY {
assert_eq!(dst.len(), src.len(), "dst and src must be the same length")
Expand Down

0 comments on commit 1461c5f

Please sign in to comment.