Merge pull request #238 from svost/c4267
authorCryptoManiac <CryptoManiac@users.noreply.github.com>
Fri, 25 Sep 2015 21:51:34 +0000 (14:51 -0700)
committerCryptoManiac <CryptoManiac@users.noreply.github.com>
Fri, 25 Sep 2015 21:51:34 +0000 (14:51 -0700)
Fix msvc c4267 warning

src/util.cpp

index d434c81..2f28b95 100644 (file)
@@ -1272,7 +1272,7 @@ void ShrinkDebugFile()
         // Restart the file with some of the end
         char pch[200000];
         fseek(file, -((long long)sizeof(pch)), SEEK_END);
-        int nBytes = fread(pch, 1, sizeof(pch), file);
+        size_t nBytes = fread(pch, 1, sizeof(pch), file);
         fclose(file);
 
         file = fopen(pathLog.string().c_str(), "w");