diff options
author | chriseth <c@ethdev.com> | 2015-07-14 23:43:13 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-07-14 23:43:13 +0800 |
commit | 3d03e85e4e39693e139aebe7205f176befa1a8bc (patch) | |
tree | 2a8ef3c32e67958438150bb66aa06c17939d9329 /Types.h | |
parent | da818b1acdd8f02fccd18779cfb0ac397d7e61b1 (diff) | |
download | dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.tar dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.tar.gz dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.tar.bz2 dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.tar.lz dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.tar.xz dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.tar.zst dexon-solidity-3d03e85e4e39693e139aebe7205f176befa1a8bc.zip |
Check whether a literal is a valid literal before using it.
Fixes #2078
Diffstat (limited to 'Types.h')
-rw-r--r-- | Types.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -286,6 +286,9 @@ class IntegerConstantType: public Type public: virtual Category getCategory() const override { return Category::IntegerConstant; } + /// @returns true if the literal is a valid integer. + static bool isValidLiteral(Literal const& _literal); + explicit IntegerConstantType(Literal const& _literal); explicit IntegerConstantType(bigint _value): m_value(_value) {} |