]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
changed implicit precision loss again
authorPaul Cruz <paulcruz74@fb.com>
Thu, 15 Jun 2017 23:03:40 +0000 (16:03 -0700)
committerPaul Cruz <paulcruz74@fb.com>
Thu, 15 Jun 2017 23:03:40 +0000 (16:03 -0700)
programs/fileio.c

index e76f93791e380978e65e8fd5f727c35b9a69f3bb..5a1bef7a855365da7342d5fc03f36976760bf675 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, (long)(headerSize-numBytesRead), SEEK_CUR);
+                int const ret = fseek(srcFile, ((long)headerSize)-((long)numBytesRead), SEEK_CUR);
                 if (ret != 0) {
                     DISPLAY("Error: could not move to end of frame header\n");
                     detectError = 1;