Fix msvc warning C4706: assignment within conditional expression 289/head
authorsvost <svost@users.noreply.github.com>
Sun, 13 Mar 2016 20:41:29 +0000 (23:41 +0300)
committersvost <svost@users.noreply.github.com>
Sun, 13 Mar 2016 20:41:29 +0000 (23:41 +0300)
src/main.cpp

index 1a90e51..1668679 100644 (file)
@@ -1838,11 +1838,11 @@ bool static Reorganize(CTxDB& txdb, CBlockIndex* pindexNew)
     while (pfork != plonger)
     {
         while (plonger->nHeight > pfork->nHeight)
-            if (!(plonger = plonger->pprev))
+            if ((plonger = plonger->pprev) == NULL)
                 return error("Reorganize() : plonger->pprev is null");
         if (pfork == plonger)
             break;
-        if (!(pfork = pfork->pprev))
+        if ((pfork = pfork->pprev) == NULL)
             return error("Reorganize() : pfork->pprev is null");
     }