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