Fix assertion in yul interpreter.

This commit is contained in:
chriseth 2019-03-13 20:58:15 +01:00
parent 5c03178e13
commit db379403fc

View File

@ -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;
}