diff --git a/cpp/src/barretenberg/crypto/ecdsa/ecdsa_impl.hpp b/cpp/src/barretenberg/crypto/ecdsa/ecdsa_impl.hpp index c890c69e2f..2920b420b3 100644 --- a/cpp/src/barretenberg/crypto/ecdsa/ecdsa_impl.hpp +++ b/cpp/src/barretenberg/crypto/ecdsa/ecdsa_impl.hpp @@ -40,7 +40,7 @@ signature construct_signature(const std::string& message, const key_pair bool is_r_finite = (uint256_t(r_fq) == uint256_t(r_fr)); bool y_parity = uint256_t(R.y).get_bit(0); constexpr uint8_t offset = 27; - sig.v = offset + y_parity + uint8_t(2) * !is_r_finite; + sig.v = offset + y_parity + static_cast(2) * !is_r_finite; return sig; }