Browse Source

Fix memNeed overflow

cl-refactor
Christoph Jentzsch 10 years ago
parent
commit
e866cedc40
  1. 2
      libevm/VM.h

2
libevm/VM.h

@ -92,7 +92,7 @@ private:
// INLINE:
template <class Ext> dev::bytesConstRef dev::eth::VM::go(Ext& _ext, OnOpFunc const& _onOp, uint64_t _steps)
{
auto memNeed = [](dev::u256 _offset, dev::u256 _size) { return _size ? _offset + _size : 0; };
auto memNeed = [](dev::u256 _offset, dev::u256 _size) { return _size ? (bigint)_offset + _size : (bigint)0; };
if (m_jumpDests.empty())
{

Loading…
Cancel
Save