From 70acca1f37d852906f33122ababdb022f6e4ff4d Mon Sep 17 00:00:00 2001 From: Suyash Bagad Date: Thu, 20 Apr 2023 10:00:27 +0000 Subject: [PATCH] Make gcc happy (again) --- cpp/src/barretenberg/crypto/ecdsa/ecdsa_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }