mirror of
https://github.com/jwinterm/myriadcoin.git
synced 2026-11-10 08:34:03 +01:00
Merge commit 'd710ed5' into 0.6.0.x
This commit is contained in:
+1
-1
@@ -1903,7 +1903,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