fixed wrong assert

by introducing ZSTD_OPT_SIZE
This commit is contained in:
Yann Collet
2024-02-03 19:31:53 -08:00
parent 9ae3bf5ee2
commit 5474edbe60
3 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -1361,7 +1361,7 @@ _shortestPath: /* cur, last_pos, best_mlen, best_off have to be set */
DEBUGLOG(6, "start reverse traversal (last_pos:%u, cur:%u)",
last_pos, cur); (void)last_pos;
assert(storeEnd < ZSTD_OPT_NUM);
assert(storeEnd < ZSTD_OPT_SIZE);
DEBUGLOG(6, "last stretch copied into pos=%u (llen=%u,mlen=%u,ofc=%u)",
storeEnd, lastStretch.litlen, lastStretch.mlen, lastStretch.off);
if (lastStretch.litlen > 0) {