X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fmain.cpp;h=e3e4fd8fa5ac4467fab6fd67251e7abb74d63700;hp=21eef1ed80e1b984f5d67084119506143682dec6;hb=3814af1ef1a10f25e7a76929edfd3abdb0ab791d;hpb=ce2bd54eb512e1ee9d2f9d9e760b34ff4187d94f 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");