diff options
author | chriseth <chris@ethereum.org> | 2018-02-10 01:59:57 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-02-10 02:00:40 +0800 |
commit | d7e5cc3f9706ef55414c19abeac63e58bf5a1137 (patch) | |
tree | 4eafab43475b86f8b13cc197c4ff162e4c20b2eb /libjulia/optimiser/SimplificationRules.cpp | |
parent | d84c9e148b0d9544cc81096eb6183648396807ae (diff) | |
download | dexon-solidity-d7e5cc3f9706ef55414c19abeac63e58bf5a1137.tar dexon-solidity-d7e5cc3f9706ef55414c19abeac63e58bf5a1137.tar.gz dexon-solidity-d7e5cc3f9706ef55414c19abeac63e58bf5a1137.tar.bz2 dexon-solidity-d7e5cc3f9706ef55414c19abeac63e58bf5a1137.tar.lz dexon-solidity-d7e5cc3f9706ef55414c19abeac63e58bf5a1137.tar.xz dexon-solidity-d7e5cc3f9706ef55414c19abeac63e58bf5a1137.tar.zst dexon-solidity-d7e5cc3f9706ef55414c19abeac63e58bf5a1137.zip |
Pretty-print constants in simplifier.
Diffstat (limited to 'libjulia/optimiser/SimplificationRules.cpp')
-rw-r--r-- | libjulia/optimiser/SimplificationRules.cpp | 2 |
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) { |