diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-03 01:26:33 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-05-19 16:44:16 +0800 |
commit | edd0afa3c35475990bacd8ffe64d15b3be40a036 (patch) | |
tree | 43fe277a01e28007a5de2aada0d6a338aa0fa697 /libsolidity/inlineasm/AsmAnalysis.cpp | |
parent | cc9a99a63fdfbcb0ea9bfb444688a6d094e37b11 (diff) | |
download | dexon-solidity-edd0afa3c35475990bacd8ffe64d15b3be40a036.tar dexon-solidity-edd0afa3c35475990bacd8ffe64d15b3be40a036.tar.gz dexon-solidity-edd0afa3c35475990bacd8ffe64d15b3be40a036.tar.bz2 dexon-solidity-edd0afa3c35475990bacd8ffe64d15b3be40a036.tar.lz dexon-solidity-edd0afa3c35475990bacd8ffe64d15b3be40a036.tar.xz dexon-solidity-edd0afa3c35475990bacd8ffe64d15b3be40a036.tar.zst dexon-solidity-edd0afa3c35475990bacd8ffe64d15b3be40a036.zip |
Support true/false literals in inline assembly
Diffstat (limited to 'libsolidity/inlineasm/AsmAnalysis.cpp')
-rw-r--r-- | libsolidity/inlineasm/AsmAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/inlineasm/AsmAnalysis.cpp b/libsolidity/inlineasm/AsmAnalysis.cpp index 590f9ad6..e03eea2e 100644 --- a/libsolidity/inlineasm/AsmAnalysis.cpp +++ b/libsolidity/inlineasm/AsmAnalysis.cpp @@ -72,7 +72,7 @@ bool AsmAnalyzer::operator()(assembly::Instruction const& _instruction) bool AsmAnalyzer::operator()(assembly::Literal const& _literal) { ++m_stackHeight; - if (!_literal.isNumber && _literal.value.size() > 32) + if (_literal.kind == assembly::LiteralKind::String && _literal.value.size() > 32) { m_errors.push_back(make_shared<Error>( Error::Type::TypeError, |