mirror of
https://github.com/facebook/zstd.git
synced 2025-08-05 19:15:58 +03:00
fixed gcc-7 conversion warning
This commit is contained in:
@@ -71,7 +71,7 @@ size_t ZSTD_seekable_frameLog_allocVec(ZSTD_frameLog* fl)
|
|||||||
fl->entries = (framelogEntry_t*)malloc(
|
fl->entries = (framelogEntry_t*)malloc(
|
||||||
sizeof(framelogEntry_t) * FRAMELOG_STARTING_CAPACITY);
|
sizeof(framelogEntry_t) * FRAMELOG_STARTING_CAPACITY);
|
||||||
if (fl->entries == NULL) return ERROR(memory_allocation);
|
if (fl->entries == NULL) return ERROR(memory_allocation);
|
||||||
fl->capacity = FRAMELOG_STARTING_CAPACITY;
|
fl->capacity = (U32)FRAMELOG_STARTING_CAPACITY;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user