mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 23:29:12 +01:00
Merge pull request #1180 from jgarzik/sign-compare
Fix final sign comparison warnings
This commit is contained in:
@@ -1860,7 +1860,7 @@ bool CheckDiskSpace(uint64 nAdditionalBytes)
|
||||
|
||||
FILE* OpenBlockFile(unsigned int nFile, unsigned int nBlockPos, const char* pszMode)
|
||||
{
|
||||
if (nFile == -1)
|
||||
if ((nFile < 1) || (nFile == (unsigned int) -1))
|
||||
return NULL;
|
||||
FILE* file = fopen((GetDataDir() / strprintf("blk%04d.dat", nFile)).string().c_str(), pszMode);
|
||||
if (!file)
|
||||
|
||||
Reference in New Issue
Block a user