mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Use C++ user-defined literals for creating YulString constants.
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user