diff options
author | chriseth <c@ethdev.com> | 2016-05-10 17:15:41 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-05-11 01:40:37 +0800 |
commit | 22318c0c1a67b9d7743e70d8f8378adbacb0079a (patch) | |
tree | 5c08117bbbd452819fd719a138050b4d2fdf15a4 /libsolidity/ast/Types.cpp | |
parent | 80c368dac1529994e736360812e2519e987e26b1 (diff) | |
download | dexon-solidity-22318c0c1a67b9d7743e70d8f8378adbacb0079a.tar dexon-solidity-22318c0c1a67b9d7743e70d8f8378adbacb0079a.tar.gz dexon-solidity-22318c0c1a67b9d7743e70d8f8378adbacb0079a.tar.bz2 dexon-solidity-22318c0c1a67b9d7743e70d8f8378adbacb0079a.tar.lz dexon-solidity-22318c0c1a67b9d7743e70d8f8378adbacb0079a.tar.xz dexon-solidity-22318c0c1a67b9d7743e70d8f8378adbacb0079a.tar.zst dexon-solidity-22318c0c1a67b9d7743e70d8f8378adbacb0079a.zip |
Replace "unsigned int" by "unsigned".
Diffstat (limited to 'libsolidity/ast/Types.cpp')
-rw-r--r-- | libsolidity/ast/Types.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index c2ebecb5..92b2f6e8 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -123,8 +123,8 @@ TypePointer Type::fromElementaryTypeName(ElementaryTypeNameToken const& _type) ); Token::Value token = _type.token(); - unsigned int m = _type.firstNumber(); - unsigned int n = _type.secondNumber(); + unsigned m = _type.firstNumber(); + unsigned n = _type.secondNumber(); switch (token) { @@ -699,19 +699,19 @@ TypePointer RationalNumberType::binaryOperatorResult(Token::Value _operator, Typ bigint newNumerator; if (other.m_value.denominator() != 1) return TypePointer(); - else if (abs(other.m_value) > numeric_limits<unsigned int>::max()) + else if (abs(other.m_value) > numeric_limits<unsigned>::max()) return TypePointer(); else if (other.m_value < 0) //apply inverse { rational absoluteValue = abs(other.m_value); - newDenominator = boost::multiprecision::pow(m_value.numerator(), absoluteValue.numerator().convert_to<unsigned int>()); - newNumerator = boost::multiprecision::pow(m_value.denominator(), absoluteValue.numerator().convert_to<unsigned int>()); + newDenominator = boost::multiprecision::pow(m_value.numerator(), absoluteValue.numerator().convert_to<unsigned>()); + newNumerator = boost::multiprecision::pow(m_value.denominator(), absoluteValue.numerator().convert_to<unsigned>()); value = rational(newNumerator, newDenominator); } else { - newNumerator = boost::multiprecision::pow(m_value.numerator(), other.m_value.numerator().convert_to<unsigned int>()); - newDenominator = boost::multiprecision::pow(m_value.denominator(), other.m_value.numerator().convert_to<unsigned int>()); + newNumerator = boost::multiprecision::pow(m_value.numerator(), other.m_value.numerator().convert_to<unsigned>()); + newDenominator = boost::multiprecision::pow(m_value.denominator(), other.m_value.numerator().convert_to<unsigned>()); value = rational(newNumerator, newDenominator); } break; @@ -1555,9 +1555,9 @@ bool EnumType::isExplicitlyConvertibleTo(Type const& _convertTo) const return _convertTo.category() == category() || _convertTo.category() == Category::Integer; } -unsigned int EnumType::memberValue(ASTString const& _member) const +unsigned EnumType::memberValue(ASTString const& _member) const { - unsigned int index = 0; + unsigned index = 0; for (ASTPointer<EnumValue> const& decl: m_enum.members()) { if (decl->name() == _member) |