From: Yann Collet Date: Thu, 4 Mar 2021 02:00:41 +0000 (-0800) Subject: fixed gcc-7 conversion warning X-Git-Tag: v1.4.10~28^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=713d4953f712ddc7477877549a0eaebcd0062714;p=thirdparty%2Fzstd.git fixed gcc-7 conversion warning --- diff --git a/contrib/seekable_format/zstdseek_compress.c b/contrib/seekable_format/zstdseek_compress.c index 442f9bee9..7895e8edc 100644 --- a/contrib/seekable_format/zstdseek_compress.c +++ b/contrib/seekable_format/zstdseek_compress.c @@ -71,7 +71,7 @@ size_t ZSTD_seekable_frameLog_allocVec(ZSTD_frameLog* fl) fl->entries = (framelogEntry_t*)malloc( sizeof(framelogEntry_t) * FRAMELOG_STARTING_CAPACITY); if (fl->entries == NULL) return ERROR(memory_allocation); - fl->capacity = FRAMELOG_STARTING_CAPACITY; + fl->capacity = (U32)FRAMELOG_STARTING_CAPACITY; return 0; }