mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix assertion in yul interpreter.
This commit is contained in:
parent
5c03178e13
commit
db379403fc
@ -82,7 +82,7 @@ void copyZeroExtended(
|
||||
size_t _targetOffset, size_t _sourceOffset, size_t _size
|
||||
)
|
||||
{
|
||||
yulAssert(_targetOffset + _size < _target.size(), "");
|
||||
yulAssert(_targetOffset + _size <= _target.size(), "");
|
||||
for (size_t i = 0; i < _size; ++i)
|
||||
_target[_targetOffset + i] = _sourceOffset + i < _source.size() ? _source[_sourceOffset + i] : 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user