X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Futil.cpp;h=8cc62eb672d5d0ed60229d8687845e209fdbd821;hp=03f86e7fdb23293b8337673596517c679fbd4931;hb=3814af1ef1a10f25e7a76929edfd3abdb0ab791d;hpb=ce2bd54eb512e1ee9d2f9d9e760b34ff4187d94f diff --git a/src/util.cpp b/src/util.cpp index 03f86e7..8cc62eb 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -1271,7 +1271,7 @@ void ShrinkDebugFile() { // Restart the file with some of the end char pch[200000]; - fseek(file, -sizeof(pch), SEEK_END); + fseek(file, (long long)-sizeof(pch), SEEK_END); int nBytes = fread(pch, 1, sizeof(pch), file); fclose(file);