From 51c4aaaa21a124abafe3f950e12c3c25ddbe0812 Mon Sep 17 00:00:00 2001 From: Tuowen Zhao Date: Sun, 25 Sep 2016 01:07:21 -0600 Subject: floating literal fix --- src/printer/dump.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/printer/dump.cpp') 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) { -- cgit v1.2.3-70-g09d2