aboutsummaryrefslogtreecommitdiffstats
path: root/libjulia/optimiser
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-02-10 01:59:57 +0800
committerchriseth <chris@ethereum.org>2018-02-10 02:00:40 +0800
commitd7e5cc3f9706ef55414c19abeac63e58bf5a1137 (patch)
tree4eafab43475b86f8b13cc197c4ff162e4c20b2eb /libjulia/optimiser
parentd84c9e148b0d9544cc81096eb6183648396807ae (diff)
downloaddexon-solidity-d7e5cc3f9706ef55414c19abeac63e58bf5a1137.tar.gz
dexon-solidity-d7e5cc3f9706ef55414c19abeac63e58bf5a1137.tar.zst
dexon-solidity-d7e5cc3f9706ef55414c19abeac63e58bf5a1137.zip
Pretty-print constants in simplifier.
Diffstat (limited to 'libjulia/optimiser')
-rw-r--r--libjulia/optimiser/SimplificationRules.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjulia/optimiser/SimplificationRules.cpp b/libjulia/optimiser/SimplificationRules.cpp
index a439caef..e5dbb059 100644
--- a/libjulia/optimiser/SimplificationRules.cpp
+++ b/libjulia/optimiser/SimplificationRules.cpp
@@ -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)
{