Merge pull request #1679 from Diapolo/fix_sign_warning

fix a compiler sign warning in OpenBlockFile()
This commit is contained in:
Pieter Wuille 2012-08-17 05:26:48 -07:00
commit 63046fcf62
1 changed files with 1 additions and 1 deletions

View File

@ -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;