From d7e5cc3f9706ef55414c19abeac63e58bf5a1137 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 9 Feb 2018 18:59:57 +0100 Subject: Pretty-print constants in simplifier. --- libjulia/optimiser/SimplificationRules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libjulia') 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) { -- cgit