Adding fixes for signedness warnings in test/tools/yulInterpreter

This commit is contained in:
Djordje Mijovic
2020-06-02 16:35:41 +02:00
committed by Daniel Kirchner
parent 97cb091ada
commit 1ee6c49028
3 changed files with 8 additions and 8 deletions
@@ -87,9 +87,9 @@ u256 EwasmBuiltinInterpreter::evalBuiltin(YulString _fun, vector<u256> const& _a
copyZeroExtended(
m_state.memory,
m_state.code,
size_t(_arguments.at(0)),
size_t(_arguments.at(1) & size_t(-1)),
size_t(_arguments.at(2))
static_cast<size_t>(_arguments.at(0)),
static_cast<size_t>(_arguments.at(1) & numeric_limits<size_t>::max()),
static_cast<size_t>(_arguments.at(2))
);
return 0;
}