diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2019-04-18 23:06:02 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2019-04-18 23:07:16 (GMT) |
commit | 0b876db6d42ec22da0c635e97a0d690908f2104a (patch) | |
tree | 2ee943a56f12698153a5e0c305a65a2f7016ad7a /lib/lz4hc.c | |
parent | 5a6d72447ae998b387794df1135023689aa89995 (diff) | |
download | lz4-0b876db6d42ec22da0c635e97a0d690908f2104a.zip lz4-0b876db6d42ec22da0c635e97a0d690908f2104a.tar.gz lz4-0b876db6d42ec22da0c635e97a0d690908f2104a.tar.bz2 |
address a few minor Visual warnings
and created target cxx17build
Diffstat (limited to 'lib/lz4hc.c')
-rw-r--r-- | lib/lz4hc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/lz4hc.c b/lib/lz4hc.c index d5f6743..031df8f 100644 --- a/lib/lz4hc.c +++ b/lib/lz4hc.c @@ -1396,6 +1396,7 @@ static int LZ4HC_compress_optimal ( LZ4HC_CCtx_internal* ctx, } } } /* for (cur = 1; cur <= last_match_pos; cur++) */ + assert(last_match_pos < LZ4_OPT_NUM + TRAILING_LITERALS); best_mlen = opt[last_match_pos].mlen; best_off = opt[last_match_pos].off; cur = last_match_pos - best_mlen; |