X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fmain.cpp;h=e3e4fd8fa5ac4467fab6fd67251e7abb74d63700;hb=3814af1ef1a10f25e7a76929edfd3abdb0ab791d;hp=21eef1ed80e1b984f5d67084119506143682dec6;hpb=92948780909cc9e3349409d6102dbe5adf1d5a10;p=novacoin.git diff --git a/src/main.cpp b/src/main.cpp index 21eef1e..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 = UINT_MAX; + unsigned int nFile = std::numeric_limits::max(); unsigned int nBlockPos = 0; if (!WriteToDisk(nFile, nBlockPos)) return error("AcceptBlock() : WriteToDisk failed");