]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
fixed gcc-7 conversion warning
authorYann Collet <yann.collet.73@gmail.com>
Thu, 4 Mar 2021 02:00:41 +0000 (18:00 -0800)
committerYann Collet <yann.collet.73@gmail.com>
Thu, 4 Mar 2021 02:00:41 +0000 (18:00 -0800)
contrib/seekable_format/zstdseek_compress.c

index 442f9bee9ad89dc7198d7a256758d38b77919425..7895e8edc7b61934e953707980833124312a849a 100644 (file)
@@ -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;
 }