diff options
| author | Jeff Garzik <[email protected]> | 2012-05-08 13:50:27 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-05-08 13:50:27 -0700 |
| commit | a2ea7975936cab4c56dd737de37004ae3298104d (patch) | |
| tree | b3ab8e38d3f52085d5389a2f85341c4cbdd8b02a /src/main.cpp | |
| parent | Merge pull request #841 from sipa/getalltransactions (diff) | |
| parent | EvalScript(): cast to avoid signed/unsigned warning (diff) | |
| download | discoin-a2ea7975936cab4c56dd737de37004ae3298104d.tar.xz discoin-a2ea7975936cab4c56dd737de37004ae3298104d.zip | |
Merge pull request #1180 from jgarzik/sign-compare
Fix final sign comparison warnings
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 0e0fd28c4..a357079ba 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) |