aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-08-17 05:26:48 -0700
committerPieter Wuille <pieter.wuille@gmail.com>2012-08-17 05:26:48 -0700
commit63046fcf62473d8c29b9df753ee1b7d649b0c405 (patch)
tree775772fca902bb20610e02018488fc92caddec39 /src/main.cpp
parent0825aee8f4b2c942bb2ae5fbc63afa576fbe0f1b (diff)
parent1e7027b41ebf31fe53a2c92ef4f5d30c9f681735 (diff)
Merge pull request #1679 from Diapolo/fix_sign_warning
fix a compiler sign warning in OpenBlockFile()
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 23c6d988aa..89f2709e61 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1983,7 +1983,7 @@ FILE* AppendBlockFile(unsigned int& nFileRet)
if (fseek(file, 0, SEEK_END) != 0)
return NULL;
// FAT32 file size max 4GB, fseek and ftell max 2GB, so we must stay under 2GB
- if (ftell(file) < 0x7F000000 - MAX_SIZE)
+ if (ftell(file) < (long)(0x7F000000 - MAX_SIZE))
{
nFileRet = nCurrentBlockFile;
return file;