Fix LZ4 incorrect size bug

This commit is contained in:
2023-04-01 14:56:08 +02:00
parent 173c31dede
commit 0f78e62ab0

View File

@@ -70,9 +70,10 @@ namespace JabyEngine {
memcpy(this->dst_adr, data, bytes_copy);
this->state.literal_length -= bytes_copy;
bytes_ready += bytes_copy;
if(this->state.literal_length == 0) {
this->state.step = State::Step::ObtainMatchOffset;
bytes_ready += bytes_copy;
this->state.step = State::Step::ObtainMatchOffset;
}
} break;