X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Futil.cpp;h=2f28b95b8e2b64ecc5e2dc7b6f3a7ed37bef4c42;hp=d434c815ea00ff6bbc57e19a7138ab1fe2126adc;hb=09effd299a712bf55c5ffca932e95a245e2e736c;hpb=5eacad2dea98cb2e047d9b3b812ebbe779ce28d9 diff --git a/src/util.cpp b/src/util.cpp index d434c81..2f28b95 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -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");