X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Futil.cpp;h=f4d229e8e3effefd827a4fcbd2be8a7cb3ccb1a5;hb=58059819792b948f008119cb7fdb64d26c964e66;hp=03f86e7fdb23293b8337673596517c679fbd4931;hpb=a767cdb1f8901b4b3042a6745dc65912b7cc0ebd;p=novacoin.git diff --git a/src/util.cpp b/src/util.cpp index 03f86e7..f4d229e 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);