aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPhilip Kaufmann <phil.kaufmann@t-online.de>2012-08-17 10:35:51 +0200
committerLuke Dashjr <luke-jr+git@utopios.org>2012-08-22 17:17:42 +0000
commitf51b175e3c9f7326267ca0eef0dd8ae2f28b4fad (patch)
tree4a8bc80aeb6ef1fe4fb44ea70c16e62af08c95f5 /src/main.cpp
parent448f6b3d9b6d598f6a3db7807934d10fe94d5a71 (diff)
downloadbitcoin-f51b175e3c9f7326267ca0eef0dd8ae2f28b4fad.tar.xz
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 ef59d31f9a..9e1b228b2a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1705,7 +1705,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;