fix a compiler sign warning in OpenBlockFile()
authorPhilip Kaufmann <phil.kaufmann@t-online.de>
Fri, 17 Aug 2012 08:35:51 +0000 (10:35 +0200)
committerLuke Dashjr <luke-jr+git@utopios.org>
Wed, 22 Aug 2012 17:17:42 +0000 (17:17 +0000)
src/main.cpp

index ef59d31..9e1b228 100644 (file)
@@ -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;