mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Pretty-print constants in simplifier.
This commit is contained in:
parent
d84c9e148b
commit
d7e5cc3f97
@ -154,7 +154,7 @@ Expression Pattern::toExpression(SourceLocation const& _location) const
|
||||
if (m_kind == PatternKind::Constant)
|
||||
{
|
||||
assertThrow(m_data, OptimizerException, "No match group and no constant value given.");
|
||||
return Literal{_location, assembly::LiteralKind::Number, m_data->str(), ""};
|
||||
return Literal{_location, assembly::LiteralKind::Number, formatNumber(*m_data), ""};
|
||||
}
|
||||
else if (m_kind == PatternKind::Operation)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user