mirror of
https://github.com/facebook/zstd.git
synced 2025-12-15 00:04:04 -05:00
fixed minor Visual compilation limitation
This commit is contained in:
parent
593d517ebf
commit
9bde061a0b
@ -2132,8 +2132,7 @@ unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict)
|
||||
* ZSTD_getFrameHeader(), which will provide a more precise error code. */
|
||||
unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize)
|
||||
{
|
||||
ZSTD_frameHeader zfp;
|
||||
zfp.dictID = 0;
|
||||
ZSTD_frameHeader zfp = { 0, 0, ZSTD_frame, 0, 0, 0 };
|
||||
size_t const hError = ZSTD_getFrameHeader(&zfp, src, srcSize);
|
||||
if (ZSTD_isError(hError)) return 0;
|
||||
return zfp.dictID;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user