diff options
author | chriseth <c@ethdev.com> | 2015-07-04 00:15:05 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-07-04 00:15:05 +0800 |
commit | aa6182ab87989ed50df2ec779237a2b708ccfd12 (patch) | |
tree | 67985eff7fa3a54989a1db19fdd65e2557351688 /Types.cpp | |
parent | e2d6e34f9c37488179ba5e3e9ae5dbe106bd57f0 (diff) | |
download | dexon-solidity-aa6182ab87989ed50df2ec779237a2b708ccfd12.tar dexon-solidity-aa6182ab87989ed50df2ec779237a2b708ccfd12.tar.gz dexon-solidity-aa6182ab87989ed50df2ec779237a2b708ccfd12.tar.bz2 dexon-solidity-aa6182ab87989ed50df2ec779237a2b708ccfd12.tar.lz dexon-solidity-aa6182ab87989ed50df2ec779237a2b708ccfd12.tar.xz dexon-solidity-aa6182ab87989ed50df2ec779237a2b708ccfd12.tar.zst dexon-solidity-aa6182ab87989ed50df2ec779237a2b708ccfd12.zip |
Style and some assertion messages.
Diffstat (limited to 'Types.cpp')
-rw-r--r-- | Types.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1020,13 +1020,10 @@ bool StructType::canLiveOutsideStorage() const unsigned StructType::getSizeOnStack() const { - switch (location()) - { - case DataLocation::Storage: + if (location() == DataLocation::Storage) return 2; // slot and offset - default: + else return 1; - } } string StructType::toString(bool _short) const |