mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:47:47 +00:00
LibCompress: Use the variable for LZMA "normalized to real distance"
The variable already existed, but I forgot to use it earlier.
This commit is contained in:
parent
42514c6961
commit
9ab3646bc7
1 changed files with 2 additions and 2 deletions
|
@ -466,8 +466,8 @@ u32 LzmaState::current_repetition_offset() const
|
|||
// Instead, the values are remapped so that the rep-value n starts reading n + 1 bytes back.
|
||||
// The special rep-value 0xFFFFFFFF is reserved for marking the end of the stream,
|
||||
// so this should never overflow.
|
||||
VERIFY(m_rep0 < NumericLimits<u32>::max());
|
||||
return m_rep0 + 1;
|
||||
VERIFY(m_rep0 <= NumericLimits<u32>::max() - normalized_to_real_match_distance_offset);
|
||||
return m_rep0 + normalized_to_real_match_distance_offset;
|
||||
}
|
||||
|
||||
void LzmaState::update_state_after_literal()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue