From d2c0712f36ce4a9148756458533a91bca1cfe44b Mon Sep 17 00:00:00 2001 From: RJ Catalano Date: Mon, 15 Feb 2016 10:34:45 -0600 Subject: added const correctness to extract functions in Token optimizations added in more elegant solution created for m declaration ubuntu wants to get rid of 0 <= first statement...so I will change returnToken to token --- libsolidity/ast/Types.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'libsolidity/ast') diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index f8050898..250ec102 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -118,20 +118,20 @@ u256 const& MemberList::storageSize() const TypePointer Type::fromElementaryTypeName(ElementaryTypeNameToken const& _type) { string tokenString = _type.toString(); - solAssert(Token::isElementaryTypeName(_type.returnTok()), + solAssert(Token::isElementaryTypeName(_type.token()), "Expected an elementary type name but got " + tokenString); - Token::Value token = _type.returnTok(); - unsigned int M = _type.firstNumber(); + Token::Value token = _type.token(); + unsigned int m = _type.firstNumber(); switch (token) { case Token::IntM: - return make_shared(M, IntegerType::Modifier::Signed); + return make_shared(m, IntegerType::Modifier::Signed); case Token::UIntM: - return make_shared(M, IntegerType::Modifier::Unsigned); + return make_shared(m, IntegerType::Modifier::Unsigned); case Token::BytesM: - return make_shared(M); + return make_shared(m); case Token::Int: return make_shared(256, IntegerType::Modifier::Signed); case Token::UInt: -- cgit v1.2.3