mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-16 17:48:59 +02:00
fix a compiler sign warning in OpenBlockFile()
This commit is contained in:
committed by
Luke Dashjr
parent
448f6b3d9b
commit
f51b175e3c
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user