Don't use coder->lz.stream_end_was_reached in assertions
in match_c.h.
This commit is contained in:
parent
3e09e1c058
commit
9547e734a0
|
@ -122,7 +122,6 @@ LZMA_GET_MATCHES(LZMA_MATCH_FINDER_NAME_LOWER)
|
||||||
if (lz->read_pos + lz->match_max_len <= lz->write_pos) {
|
if (lz->read_pos + lz->match_max_len <= lz->write_pos) {
|
||||||
len_limit = lz->match_max_len;
|
len_limit = lz->match_max_len;
|
||||||
} else {
|
} else {
|
||||||
assert(lz->stream_end_was_reached);
|
|
||||||
len_limit = lz->write_pos - lz->read_pos;
|
len_limit = lz->write_pos - lz->read_pos;
|
||||||
if (len_limit < MIN_MATCH_CHECK) {
|
if (len_limit < MIN_MATCH_CHECK) {
|
||||||
distances[0] = 0;
|
distances[0] = 0;
|
||||||
|
@ -300,7 +299,6 @@ LZMA_SKIP(LZMA_MATCH_FINDER_NAME_LOWER)
|
||||||
if (lz->read_pos + lz->match_max_len <= lz->write_pos) {
|
if (lz->read_pos + lz->match_max_len <= lz->write_pos) {
|
||||||
len_limit = lz->match_max_len;
|
len_limit = lz->match_max_len;
|
||||||
} else {
|
} else {
|
||||||
assert(lz->stream_end_was_reached == true);
|
|
||||||
len_limit = lz->write_pos - lz->read_pos;
|
len_limit = lz->write_pos - lz->read_pos;
|
||||||
if (len_limit < MIN_MATCH_CHECK) {
|
if (len_limit < MIN_MATCH_CHECK) {
|
||||||
move_pos();
|
move_pos();
|
||||||
|
|
Loading…
Reference in New Issue