1
0
mirror of https://github.com/facebook/zstd.git synced 2025-03-06 16:56:49 +02:00

fixed wrong assert

This commit is contained in:
Yann Collet 2024-02-03 17:48:29 -08:00
parent 8168a451e5
commit e5af24c5fa

View File

@ -1325,7 +1325,6 @@ _shortestPath: /* cur, last_pos, best_mlen, best_off have to be set */
assert(opt[0].mlen == 0);
assert(last_pos >= lastStretch.mlen);
assert(cur == last_pos - lastStretch.mlen);
assert(lastStretch.rep[0] != 0);
if (lastStretch.mlen==0) {
/* no solution : all matches have been converted into literals */