From 9d0c70e9e7bec8fc90a533b6f8838807424be9f7 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 15 Dec 2017 18:36:05 +0000 Subject: [PATCH] Clarify operator precedence in serialization of nSproutValue --- src/chain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chain.h b/src/chain.h index 5e5258339..9d858a609 100644 --- a/src/chain.h +++ b/src/chain.h @@ -357,7 +357,7 @@ public: // this index was storing them. // TODO: See if we can get away with not serializing the boost::optional // one-byte header, without requiring users to reindex on upgrade. - if (nType & SER_DISK && nVersion >= SPROUT_VALUE_VERSION) { + if ((nType & SER_DISK) && (nVersion >= SPROUT_VALUE_VERSION)) { READWRITE(nSproutValue); } }