diff options
author | Daniel Kirchner <daniel@ekpyron.org> | 2018-12-10 11:25:51 +0800 |
---|---|---|
committer | Daniel Kirchner <daniel@ekpyron.org> | 2018-12-13 01:45:43 +0800 |
commit | 5ac7620045012c2ed565b81978dc35f5f83f7eea (patch) | |
tree | 349169b91c08264dbc7c5e831ceecd6577adf3e8 /libyul/backends | |
parent | e85c3428b483192e8e3d4255d619f31a48c08bef (diff) | |
download | dexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.tar.gz dexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.tar.zst dexon-solidity-5ac7620045012c2ed565b81978dc35f5f83f7eea.zip |
Use C++ user-defined literals for creating YulString constants.
Diffstat (limited to 'libyul/backends')
-rw-r--r-- | libyul/backends/evm/EVMCodeTransform.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libyul/backends/evm/EVMCodeTransform.cpp b/libyul/backends/evm/EVMCodeTransform.cpp index bd18985c..04dc5040 100644 --- a/libyul/backends/evm/EVMCodeTransform.cpp +++ b/libyul/backends/evm/EVMCodeTransform.cpp @@ -387,7 +387,7 @@ void CodeTransform::operator()(Literal const& _literal) m_assembly.appendConstant(u256(_literal.value.str())); else if (_literal.kind == LiteralKind::Boolean) { - if (_literal.value.str() == "true") + if (_literal.value == "true"_yulstring) m_assembly.appendConstant(u256(1)); else m_assembly.appendConstant(u256(0)); |