# lzma2: fix premature finish · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/35f013db11ff90ab9c75b028dc58b50d4f06ee42)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 35f013db11ff90ab9c75b028dc58b50d4f06ee42

Requested commit: 35f013db11ff90ab9c75b028dc58b50d4f06ee42

Commit: 35f013db11ff90ab9c75b028dc58b50d4f06ee42

Tree: 360b6c79cf33e81bd13a7b660ece4fed0d7f981b

Author: binarycraft007

Committer: Andrew Kelley

## Message

```
lzma2: fix premature finish

lzma2 Decoder already checks if decoding is finished or not inside the
process function, `range_decoder`finish does not mean the decoder has
finished, also need to check `ld.rep[0] == 0xFFFF_FFFF`, which was
already done inside the proccess function. This fix delete the redundant
`isFinish()` check for `range_decoder`.

```

## Parents

- [d51d18c98654e09cb1af7f2896f97b81ce6c83bb](https://git.cafe/gitcafe/zig/commit/d51d18c98654e09cb1af7f2896f97b81ce6c83bb?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/35f013db11ff90ab9c75b028dc58b50d4f06ee42?format=markdown)
