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; bytes ret = _b;
while (ret.size() < _length) while (ret.size() < _length)
if (_f == Format::Binary) if (base == Base::Bytes || (base == Base::Unknown && _f == Format::Binary))
ret.push_back(0); ret.push_back(0);
else else
ret.insert(ret.begin(), 0); ret.insert(ret.begin(), 0);
while (ret.size() > _length) while (ret.size() > _length)
if (_f == Format::Binary) if (base == Base::Bytes || (base == Base::Unknown && _f == Format::Binary))
ret.pop_back(); ret.pop_back();
else else
ret.erase(ret.begin()); ret.erase(ret.begin());

Loading…
Cancel
Save