diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2008-01-14 12:09:52 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2008-01-14 12:09:52 +0200 |
commit | 9547e734a00ddb64c851fa3f116e4f9e7d763ea7 (patch) | |
tree | 5feaf6a58dae56fbc7cbbec459caa4f25ba9edb7 /src | |
parent | In lzma_read_match_distances(), don't use (diff) | |
download | xz-9547e734a00ddb64c851fa3f116e4f9e7d763ea7.tar.xz |
Don't use coder->lz.stream_end_was_reached in assertions
in match_c.h.
Diffstat (limited to 'src')
-rw-r--r-- | src/liblzma/lz/match_c.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/liblzma/lz/match_c.h b/src/liblzma/lz/match_c.h index 68766385..e1ee6a07 100644 --- a/src/liblzma/lz/match_c.h +++ b/src/liblzma/lz/match_c.h @@ -122,7 +122,6 @@ LZMA_GET_MATCHES(LZMA_MATCH_FINDER_NAME_LOWER) if (lz->read_pos + lz->match_max_len <= lz->write_pos) { len_limit = lz->match_max_len; } else { - assert(lz->stream_end_was_reached); len_limit = lz->write_pos - lz->read_pos; if (len_limit < MIN_MATCH_CHECK) { 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) { len_limit = lz->match_max_len; } else { - assert(lz->stream_end_was_reached == true); len_limit = lz->write_pos - lz->read_pos; if (len_limit < MIN_MATCH_CHECK) { move_pos(); |