Skip to content

Commit

Permalink
Typo in compact::from_big assert msg.
Browse files Browse the repository at this point in the history
  • Loading branch information
jachiang committed Nov 14, 2018
1 parent efe3edb commit 0a033eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chain/compact.cpp
Expand Up @@ -179,8 +179,8 @@ uint32_t compact::from_big(const uint256_t& big)
mantissa >>= 8;
}

BITCOIN_ASSERT_MSG((exponent & first_byte_mask) == 0, "size exceess");
BITCOIN_ASSERT_MSG((mantissa & mantissa_mask) == 0, "value exceess");
BITCOIN_ASSERT_MSG((exponent & first_byte_mask) == 0, "size excess");
BITCOIN_ASSERT_MSG((mantissa & mantissa_mask) == 0, "value excess");

// Assemble the compact notation.
return (exponent << mantissa_bits) | mantissa;
Expand Down

0 comments on commit 0a033eb

Please sign in to comment.