Fix LZ4 incorrect size bug
This commit is contained in:
parent
8b94760130
commit
5770d4f77e
|
@ -70,9 +70,10 @@ namespace JabyEngine {
|
||||||
memcpy(this->dst_adr, data, bytes_copy);
|
memcpy(this->dst_adr, data, bytes_copy);
|
||||||
|
|
||||||
this->state.literal_length -= bytes_copy;
|
this->state.literal_length -= bytes_copy;
|
||||||
|
bytes_ready += bytes_copy;
|
||||||
|
|
||||||
if(this->state.literal_length == 0) {
|
if(this->state.literal_length == 0) {
|
||||||
this->state.step = State::Step::ObtainMatchOffset;
|
this->state.step = State::Step::ObtainMatchOffset;
|
||||||
bytes_ready += bytes_copy;
|
|
||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue