aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing/Token.cpp
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2017-07-12 21:44:27 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-07-20 05:13:42 +0800
commit72917c4f3513a73ae180767b854de8653be9a2f4 (patch)
tree667e1ab8943b068e6cfe961e1f0a9566a983aca4 /libsolidity/parsing/Token.cpp
parent78769f3b39bccbfa02edec302a02377e8fa08a8d (diff)
downloaddexon-solidity-72917c4f3513a73ae180767b854de8653be9a2f4.tar
dexon-solidity-72917c4f3513a73ae180767b854de8653be9a2f4.tar.gz
dexon-solidity-72917c4f3513a73ae180767b854de8653be9a2f4.tar.bz2
dexon-solidity-72917c4f3513a73ae180767b854de8653be9a2f4.tar.lz
dexon-solidity-72917c4f3513a73ae180767b854de8653be9a2f4.tar.xz
dexon-solidity-72917c4f3513a73ae180767b854de8653be9a2f4.tar.zst
dexon-solidity-72917c4f3513a73ae180767b854de8653be9a2f4.zip
Cleanup fixed point type changes
Diffstat (limited to 'libsolidity/parsing/Token.cpp')
-rw-r--r--libsolidity/parsing/Token.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/parsing/Token.cpp b/libsolidity/parsing/Token.cpp
index d290bedb..9cec0303 100644
--- a/libsolidity/parsing/Token.cpp
+++ b/libsolidity/parsing/Token.cpp
@@ -70,7 +70,7 @@ void ElementaryTypeNameToken::assertDetails(Token::Value _baseType, unsigned con
else if (_baseType == Token::UFixedMxN || _baseType == Token::FixedMxN)
{
solAssert(
- _first <= 256 && _first % 8 == 0 && _second >= 0 && _second <= 80,
+ _first >= 8 && _first <= 256 && _first % 8 == 0 && _second <= 80,
"No elementary type " + string(Token::toString(_baseType)) + to_string(_first) + "x" + to_string(_second) + "."
);
}