git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
06b83ae
)
Fix msvc warning C4706: assignment within conditional expression
289/head
author
svost
<svost@users.noreply.github.com>
Sun, 13 Mar 2016 20:41:29 +0000 (23:41 +0300)
committer
svost
<svost@users.noreply.github.com>
Sun, 13 Mar 2016 20:41:29 +0000 (23:41 +0300)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
1a90e51
..
1668679
100644
(file)
--- 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");
}