Skip to content

Commit c5abb3f

Browse files
authored
Upgrade intx to 0.10.0 (#622)
1 parent 2b7194e commit c5abb3f

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

cmake/Hunter/config.cmake

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ hunter_cmake_args(
1111

1212
hunter_config(
1313
intx
14-
VERSION 0.9.1
15-
URL https://github.com/chfast/intx/archive/v0.9.1.tar.gz
16-
SHA1 d9907860327b52ca5cba4048d1a0e8274c883584
14+
VERSION 0.10.0
15+
URL https://github.com/chfast/intx/archive/v0.10.0.tar.gz
16+
SHA1 3a6ebe0b1a36527b6ef291ee93a8e508371e5b77
1717
)

lib/evmone/baseline.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ int64_t dispatch(const CostTable& cost_table, ExecutionState& state, int64_t gas
271271
return gas;
272272
}
273273
}
274-
INTX_UNREACHABLE();
274+
intx::unreachable();
275275
}
276276

277277
#if EVMONE_CGOTO_SUPPORTED

lib/evmone/execution_state.hpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,10 @@ class Memory
9292
void grow(size_t new_size) noexcept
9393
{
9494
// Restriction for future changes. EVM always has memory size as multiple of 32 bytes.
95-
assert(new_size % 32 == 0);
95+
INTX_REQUIRE(new_size % 32 == 0);
9696

9797
// Allow only growing memory. Include hint for optimizing compiler.
98-
assert(new_size > m_size);
99-
if (new_size <= m_size)
100-
INTX_UNREACHABLE(); // TODO: NOLINT(misc-static-assert)
98+
INTX_REQUIRE(new_size > m_size);
10199

102100
if (new_size > m_capacity)
103101
{

0 commit comments

Comments
 (0)