Skip to content

Conversation

@folkertdev
Copy link
Member

  • we missed a macro that cuts down on the line count
  • by moving the branch on whether blockRandomized is true we can deduplicate code
  • some state fields can be smaller/unsigned

after staring at the rust and C code, I really don't see why initializing as `-1`, then maybe adding some (positive!) values, and then adding 1 is useful. I don't think it's needed, and this means `es` is always non-negative
@folkertdev folkertdev requested a review from bjorn3 January 14, 2025 18:50
@codecov
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

Attention: Patch coverage is 91.48936% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
libbz2-rs-sys/src/decompress.rs 91.11% 4 Missing ⚠️
Files with missing lines Coverage Δ
libbz2-rs-sys/src/bzlib.rs 92.62% <100.00%> (ø)
libbz2-rs-sys/src/decompress.rs 93.62% <91.11%> (+0.48%) ⬆️

@folkertdev folkertdev merged commit 93202ac into main Jan 15, 2025
21 checks passed
@folkertdev folkertdev deleted the es-unsigned branch January 15, 2025 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants