Merge branch 'c++11' of github.com:novacoin-project/novacoin into c++11
authorCryptoManiac <balthazar@yandex.ru>
Mon, 11 Apr 2016 20:12:20 +0000 (23:12 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Mon, 11 Apr 2016 20:12:20 +0000 (23:12 +0300)
src/main.cpp

index a9d20b3..fd1f25f 100644 (file)
@@ -2976,7 +2976,7 @@ bool LoadExternalBlockFile(FILE* fileIn, CClientUIInterface& uiInterface)
                         };
                         if (nBlockLength > 0)
                         {
-                            if (nBlockLength > distance(it, pchData.end()))
+                            if (nBlockLength > (uint32_t)distance(it, pchData.end()))
                             {
                                 SeekToNext();
                                 break; // We've reached the end of buffer