From 866895525a0bf940795f827629727d2b2320260b Mon Sep 17 00:00:00 2001 From: svost Date: Sun, 13 Mar 2016 23:41:29 +0300 Subject: [PATCH] Fix msvc warning C4706: assignment within conditional expression --- src/main.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 1a90e51..1668679 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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"); } -- 1.7.1