diff options
author | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-25 01:07:21 -0600 |
---|---|---|
committer | Tuowen Zhao <ztuowen@gmail.com> | 2016-09-25 01:07:21 -0600 |
commit | 51c4aaaa21a124abafe3f950e12c3c25ddbe0812 (patch) | |
tree | 29b35d225f3a77e4faf905d45dfce935c7c4e8f6 /src/printer/dump.cpp | |
parent | fad36d9324fd13d720bc9366f4de6e968d8b8963 (diff) | |
download | chill-51c4aaaa21a124abafe3f950e12c3c25ddbe0812.tar.gz chill-51c4aaaa21a124abafe3f950e12c3c25ddbe0812.tar.bz2 chill-51c4aaaa21a124abafe3f950e12c3c25ddbe0812.zip |
floating literal fix
Diffstat (limited to 'src/printer/dump.cpp')
-rw-r--r-- | src/printer/dump.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/printer/dump.cpp b/src/printer/dump.cpp index 2b2a35c..bf3f6b8 100644 --- a/src/printer/dump.cpp +++ b/src/printer/dump.cpp @@ -119,8 +119,7 @@ void Dump::printS(std::string ident, chillAST_DeclRefExpr *n, std::ostream &o) { void Dump::printS(std::string ident, chillAST_FloatingLiteral *n, std::ostream &o) { if (n->precision == 1) o << "float "; else o << "double "; - if (n->float0double1) o << n->value; - else o << n->doublevalue; + o << n->value; } void Dump::printS(std::string ident, chillAST_ForStmt *n, std::ostream &o) { |