Browse Source

Last little fix for ABI. Should work ok now.

cl-refactor
Gav Wood 10 years ago
parent
commit
26ca96af0e
  1. 4
      abi/main.cpp

4
abi/main.cpp

@ -264,12 +264,12 @@ struct ABIType
{
bytes ret = _b;
while (ret.size() < _length)
if (_f == Format::Binary)
if (base == Base::Bytes || (base == Base::Unknown && _f == Format::Binary))
ret.push_back(0);
else
ret.insert(ret.begin(), 0);
while (ret.size() > _length)
if (_f == Format::Binary)
if (base == Base::Bytes || (base == Base::Unknown && _f == Format::Binary))
ret.pop_back();
else
ret.erase(ret.begin());

Loading…
Cancel
Save