File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
category/execution/ethereum/core/contract Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ constexpr bytes32_t abi_encode_uint(I const &i)
5858
5959constexpr bytes32_t abi_encode_bool (bool const b)
6060{
61- u64_be as_int = b ? 1 : 0 ;
61+ u64_be const as_int = b ? 1 : 0 ;
6262 return abi_encode_uint (as_int);
6363}
6464
@@ -159,7 +159,8 @@ class AbiEncoder
159159 byte_string encode_final ()
160160 {
161161 for (auto const [unresolved, tail_cumsum] : unresolved_offsets_) {
162- u256_be offset = static_cast <uint256_t >(head_.size ()) + tail_cumsum;
162+ u256_be const offset =
163+ static_cast <uint256_t >(head_.size ()) + tail_cumsum;
163164 uint8_t *const p = &head_[unresolved];
164165 bytes32_t encoded = abi_encode_uint (offset);
165166 std::memcpy (p, encoded.bytes , sizeof (bytes32_t ));
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ struct BigEndian
3737
3838 BigEndian () = default ;
3939
40- constexpr BigEndian (T const &x) noexcept
40+ constexpr explicit ( false ) BigEndian (T const &x) noexcept
4141 {
4242 auto const be = intx::bswap (x);
4343 unaligned_store (bytes, be);
You can’t perform that action at this time.
0 commit comments