Merge commit 'd710ed5' into 0.6.0.x

This commit is contained in:
Luke Dashjr
2012-08-26 22:18:26 +00:00
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -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;