mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibCompress: Fix a typo in m_read_final_block
This commit is contained in:
parent
7d391e1397
commit
127f6ed6eb
Notes:
sideshowbarker
2024-07-17 03:27:40 +09:00
Author: https://github.com/timschumi Commit: https://github.com/SerenityOS/serenity/commit/127f6ed6eb Pull-request: https://github.com/SerenityOS/serenity/pull/21389 Reviewed-by: https://github.com/gmta ✅
2 changed files with 4 additions and 4 deletions
|
@ -270,10 +270,10 @@ ErrorOr<Bytes> DeflateDecompressor::read_some(Bytes bytes)
|
|||
auto slice = bytes.slice(total_read);
|
||||
|
||||
if (m_state == State::Idle) {
|
||||
if (m_read_final_bock)
|
||||
if (m_read_final_block)
|
||||
break;
|
||||
|
||||
m_read_final_bock = TRY(m_input_stream->read_bit());
|
||||
m_read_final_block = TRY(m_input_stream->read_bit());
|
||||
auto const block_type = TRY(m_input_stream->read_bits(2));
|
||||
|
||||
if (block_type == 0b00) {
|
||||
|
@ -352,7 +352,7 @@ ErrorOr<Bytes> DeflateDecompressor::read_some(Bytes bytes)
|
|||
return bytes.slice(0, total_read);
|
||||
}
|
||||
|
||||
bool DeflateDecompressor::is_eof() const { return m_state == State::Idle && m_read_final_bock; }
|
||||
bool DeflateDecompressor::is_eof() const { return m_state == State::Idle && m_read_final_block; }
|
||||
|
||||
ErrorOr<size_t> DeflateDecompressor::write_some(ReadonlyBytes)
|
||||
{
|
||||
|
|
|
@ -108,7 +108,7 @@ private:
|
|||
|
||||
static constexpr u16 max_back_reference_length = 258;
|
||||
|
||||
bool m_read_final_bock { false };
|
||||
bool m_read_final_block { false };
|
||||
|
||||
State m_state { State::Idle };
|
||||
union {
|
||||
|
|
Loading…
Reference in a new issue