diff options
author | RJ Catalano <rcatalano@macsales.com> | 2016-02-19 00:34:07 +0800 |
---|---|---|
committer | RJ Catalano <rcatalano@macsales.com> | 2016-02-19 01:23:00 +0800 |
commit | 9b67969fd648fd5477e9b5d90870fddbd187e4d6 (patch) | |
tree | f826c1b99fec02e0cde7770f6cd121e99e56b595 /libsolidity/ast | |
parent | d2c0712f36ce4a9148756458533a91bca1cfe44b (diff) | |
download | dexon-solidity-9b67969fd648fd5477e9b5d90870fddbd187e4d6.tar.gz dexon-solidity-9b67969fd648fd5477e9b5d90870fddbd187e4d6.tar.zst dexon-solidity-9b67969fd648fd5477e9b5d90870fddbd187e4d6.zip |
further optimization, splitting function into pieces
generating strings on the fly, changed name, and added two tests
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/Types.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 250ec102..bca83d59 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -117,9 +117,9 @@ u256 const& MemberList::storageSize() const TypePointer Type::fromElementaryTypeName(ElementaryTypeNameToken const& _type) { - string tokenString = _type.toString(); solAssert(Token::isElementaryTypeName(_type.token()), - "Expected an elementary type name but got " + tokenString); + "Expected an elementary type name but got " + _type.toString() + ); Token::Value token = _type.token(); unsigned int m = _type.firstNumber(); |