aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-05-08 13:50:27 -0700
committerJeff Garzik <jgarzik@exmulti.com>2012-05-08 13:50:27 -0700
commita2ea7975936cab4c56dd737de37004ae3298104d (patch)
treeb3ab8e38d3f52085d5389a2f85341c4cbdd8b02a /src/main.cpp
parent2f1dca645bece3a8422659a0bc0b1481242b8f3a (diff)
parent024fa1cb44b8ec577fef07e7b37a4e5b0501dbea (diff)
Merge pull request #1180 from jgarzik/sign-compare
Fix final sign comparison warnings
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 0e0fd28c40..a357079baf 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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)