BitGit
/
bitcoind/stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog
|
commit
| commitdiff |
tree
|
edit
|
fork
raw
|
patch
(parent:
448f6b3
)
fix a compiler sign warning in OpenBlockFile()
author
Philip Kaufmann
<phil.kaufmann@t-online.de>
Fri, 17 Aug 2012 08:35:51 +0000 (10:35 +0200)
committer
Luke Dashjr
<luke-jr+git@utopios.org>
Wed, 22 Aug 2012 17:17:42 +0000 (17:17 +0000)
src/main.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
ef59d31
..
9e1b228
100644
(file)
--- 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;