We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09b4eb9 commit 64d9729Copy full SHA for 64d9729
zlib-rs/src/deflate.rs
@@ -1284,8 +1284,9 @@ pub(crate) struct State<'a> {
1284
pub(crate) max_lazy_match: u16,
1285
1286
/// number of string matches in current block
1287
- /// Note: this counter is just 8 bits to help keep the struct compact. Code that
1288
- /// increments it must be careful to avoid overflow.
+ /// NOTE: this is a saturating 8-bit counter, to help keep the struct compact. The code that
+ /// makes decisions based on this field only cares whether the count is greater than 2, so
1289
+ /// an 8-bit counter is sufficient.
1290
pub(crate) matches: u8,
1291
1292
/// Window position at the beginning of the current output block. Gets
0 commit comments