X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmain.cpp;h=e3e4fd8fa5ac4467fab6fd67251e7abb74d63700;hb=3814af1ef1a10f25e7a76929edfd3abdb0ab791d;hp=28bdb4773a5901e658c396d2689d2b0baa6b4bae;hpb=dfae693d1b3b0e13cf3d2253bd2943a663937493;p=novacoin.git diff --git a/src/main.cpp b/src/main.cpp index 28bdb47..e3e4fd8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2387,7 +2387,7 @@ bool CBlock::AcceptBlock() // Write block to history file if (!CheckDiskSpace(::GetSerializeSize(*this, SER_DISK, CLIENT_VERSION))) return error("AcceptBlock() : out of disk space"); - unsigned int nFile = -1; + unsigned int nFile = std::numeric_limits::max(); unsigned int nBlockPos = 0; if (!WriteToDisk(nFile, nBlockPos)) return error("AcceptBlock() : WriteToDisk failed");