diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2018-05-01 05:50:27 +0800 |
---|---|---|
committer | daniel <danieljoonlee@gmail.com> | 2018-05-03 14:22:25 +0800 |
commit | 2c00ebbee1b40b66cfc96c65fc58e105bb41c776 (patch) | |
tree | 25f181279867be075937a730667e61982a6fd3e0 /libsolidity/ast/Types.cpp | |
parent | 72c3b3a2422b5f1b1ca80736a84fd88d44da4c47 (diff) | |
download | dexon-solidity-2c00ebbee1b40b66cfc96c65fc58e105bb41c776.tar dexon-solidity-2c00ebbee1b40b66cfc96c65fc58e105bb41c776.tar.gz dexon-solidity-2c00ebbee1b40b66cfc96c65fc58e105bb41c776.tar.bz2 dexon-solidity-2c00ebbee1b40b66cfc96c65fc58e105bb41c776.tar.lz dexon-solidity-2c00ebbee1b40b66cfc96c65fc58e105bb41c776.tar.xz dexon-solidity-2c00ebbee1b40b66cfc96c65fc58e105bb41c776.tar.zst dexon-solidity-2c00ebbee1b40b66cfc96c65fc58e105bb41c776.zip |
Change totalBits and fractionalDigits to unsigned in FixedPointType
Diffstat (limited to 'libsolidity/ast/Types.cpp')
-rw-r--r-- | libsolidity/ast/Types.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libsolidity/ast/Types.cpp b/libsolidity/ast/Types.cpp index 11d7160c..56d41974 100644 --- a/libsolidity/ast/Types.cpp +++ b/libsolidity/ast/Types.cpp @@ -595,13 +595,13 @@ MemberList::MemberMap IntegerType::nativeMembers(ContractDefinition const*) cons return MemberList::MemberMap(); } -FixedPointType::FixedPointType(int _totalBits, int _fractionalDigits, FixedPointType::Modifier _modifier): +FixedPointType::FixedPointType(unsigned _totalBits, unsigned _fractionalDigits, FixedPointType::Modifier _modifier): m_totalBits(_totalBits), m_fractionalDigits(_fractionalDigits), m_modifier(_modifier) { solAssert( 8 <= m_totalBits && m_totalBits <= 256 && m_totalBits % 8 == 0 && - 0 <= m_fractionalDigits && m_fractionalDigits <= 80, - "Invalid bit number(s) for fixed type: " + + 0 <= m_fractionalDigits && m_fractionalDigits <= 80, + "Invalid bit number(s) for fixed type: " + dev::toString(_totalBits) + "x" + dev::toString(_fractionalDigits) ); } |