Repository navigation
feat(api): clamp negative compression levels to FASTEST - #541
Conversation
Update compression level logic to clamp negative values to `ZXC_LEVEL_FASTEST` instead of treating them as `ZXC_LEVEL_DEFAULT`. This reserves negative values for potential future use while ensuring consistent behavior across all APIs and language bindings. Updates documentation and tests to reflect this change in policy. Signed-off-by: Bertrand Lebonnois <5901952+hellobertrand@users.noreply.github.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Update compression level logic to clamp negative values to
ZXC_LEVEL_FASTESTinstead of treating them asZXC_LEVEL_DEFAULT. This reserves negative values for potential future use while ensuring consistent behavior across all APIs and language bindings. Updates documentation and tests to reflect this change in policy.Summary by CodeRabbit
Documentation
0selects the default; other values are clamped to the supported range of 1–7.Bug Fixes