diff --git a/src/liblzma/common/index.h b/src/liblzma/common/index.h index 64e97247..dd8ddeb3 100644 --- a/src/liblzma/common/index.h +++ b/src/liblzma/common/index.h @@ -38,7 +38,7 @@ extern void lzma_index_prealloc(lzma_index *i, lzma_vli records); static inline lzma_vli vli_ceil4(lzma_vli vli) { - assert(vli <= LZMA_VLI_MAX); + assert(vli <= UNPADDED_SIZE_MAX); return (vli + 3) & ~LZMA_VLI_C(3); }