fixed minor Visual conversion warnings
This commit is contained in:
+2
-2
@@ -2010,7 +2010,7 @@ FIO_analyzeFrames(fileInfo_t* info, FILE* const srcFile)
|
|||||||
&& (numBytesRead == 0)
|
&& (numBytesRead == 0)
|
||||||
&& (info->compressedSize > 0)
|
&& (info->compressedSize > 0)
|
||||||
&& (info->compressedSize != UTIL_FILESIZE_UNKNOWN) ) {
|
&& (info->compressedSize != UTIL_FILESIZE_UNKNOWN) ) {
|
||||||
return 0; /* successful end of file */
|
return info_success;
|
||||||
}
|
}
|
||||||
EXIT_IF(feof(srcFile), info_not_zstd, "Error: reached end of file with incomplete frame");
|
EXIT_IF(feof(srcFile), info_not_zstd, "Error: reached end of file with incomplete frame");
|
||||||
EXIT_IF(1, info_frame_error, "Error: did not reach end of file but ran out of frames");
|
EXIT_IF(1, info_frame_error, "Error: did not reach end of file but ran out of frames");
|
||||||
@@ -2031,7 +2031,7 @@ FIO_analyzeFrames(fileInfo_t* info, FILE* const srcFile)
|
|||||||
info->windowSize = header.windowSize;
|
info->windowSize = header.windowSize;
|
||||||
/* move to the end of the frame header */
|
/* move to the end of the frame header */
|
||||||
{ size_t const headerSize = ZSTD_frameHeaderSize(headerBuffer, numBytesRead);
|
{ size_t const headerSize = ZSTD_frameHeaderSize(headerBuffer, numBytesRead);
|
||||||
EXIT_IF(ZSTD_isError(headerSize), 1, "Error: could not determine frame header size");
|
EXIT_IF(ZSTD_isError(headerSize), info_frame_error, "Error: could not determine frame header size");
|
||||||
EXIT_IF(fseek(srcFile, ((long)headerSize)-((long)numBytesRead), SEEK_CUR) != 0,
|
EXIT_IF(fseek(srcFile, ((long)headerSize)-((long)numBytesRead), SEEK_CUR) != 0,
|
||||||
info_frame_error, "Error: could not move to end of frame header");
|
info_frame_error, "Error: could not move to end of frame header");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user