]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
got rid of imlpicit precision loss
authorPaul Cruz <paulcruz74@fb.com>
Thu, 15 Jun 2017 23:01:52 +0000 (16:01 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Thu, 15 Jun 2017 23:01:52 +0000 (16:01 -0700)
programs/fileio.c

index 23c8badc681a3d480db605b1b31d60a7f72b7c33..e76f93791e380978e65e8fd5f727c35b9a69f3bb 100644 (file)
@@ -920,7 +920,7 @@ static int getFileInfo(fileInfo_t* info, const char* inFileName){
 
             {
                 /* move to the end of the frame header */
-                int const ret = fseek(srcFile, headerSize-numBytesRead, SEEK_CUR);
+                int const ret = fseek(srcFile, (long)(headerSize-numBytesRead), SEEK_CUR);
                 if (ret != 0) {
                     DISPLAY("Error: could not move to end of frame header\n");
                     detectError = 1;