mirror of
https://github.com/facebook/zstd.git
synced 2025-11-29 00:04:37 -05:00
blindfix for Windows conversion warning
long type is 32-bits on Windows 64, while it's 64-bits on Unix. 64-to-32 shortening conversion for long is a specific Windows issue.
This commit is contained in:
parent
88d2f72df9
commit
f207b39f55
@ -1038,7 +1038,7 @@ static int getFileInfo(fileInfo_t* info, const char* inFileName){
|
||||
/* Skippable frame */
|
||||
else if ((magicNumber & 0xFFFFFFF0U) == ZSTD_MAGIC_SKIPPABLE_START) {
|
||||
U32 const frameSize = MEM_readLE32(headerBuffer + 4);
|
||||
long const seek = -numBytesRead + 8 + frameSize;
|
||||
long const seek = (long)(8 + frameSize - numBytesRead);
|
||||
int const ret = LONG_SEEK(srcFile, seek, SEEK_CUR);
|
||||
if (ret != 0) {
|
||||
DISPLAY("Error: could not find end of skippable frame\n");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user