Skip to content

Commit 5b1b4be

Browse files
committed
Style.
1 parent aca2ca7 commit 5b1b4be

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/chain/block.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ hashes block::transaction_hashes(bool witness) const NOEXCEPT
232232
// Extra allocation for odd count optimizes for merkle root.
233233
// Vector capacity is never reduced when resizing to smaller size.
234234
const auto count = txs_->size();
235-
const auto size = is_odd(count) && count > one ? add1(count) : count;
235+
const auto size = !is_one(count) && is_odd(count) ? add1(count) : count;
236236
hashes out(size);
237237
out.resize(count);
238238

0 commit comments

Comments
 (0)