summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2016-09-25 01:07:21 -0600
committerTuowen Zhao <ztuowen@gmail.com>2016-09-25 01:07:21 -0600
commit51c4aaaa21a124abafe3f950e12c3c25ddbe0812 (patch)
tree29b35d225f3a77e4faf905d45dfce935c7c4e8f6 /lib
parentfad36d9324fd13d720bc9366f4de6e968d8b8963 (diff)
downloadchill-51c4aaaa21a124abafe3f950e12c3c25ddbe0812.tar.gz
chill-51c4aaaa21a124abafe3f950e12c3c25ddbe0812.tar.bz2
chill-51c4aaaa21a124abafe3f950e12c3c25ddbe0812.zip
floating literal fix
Diffstat (limited to 'lib')
-rwxr-xr-xlib/chillcg/src/CG_chillBuilder.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chillcg/src/CG_chillBuilder.cc b/lib/chillcg/src/CG_chillBuilder.cc
index 63761c5..9a9a414 100755
--- a/lib/chillcg/src/CG_chillBuilder.cc
+++ b/lib/chillcg/src/CG_chillBuilder.cc
@@ -992,12 +992,12 @@ namespace omega {
}
CG_outputRepr* CG_chillBuilder::CreateFloat(float f) const {
//fprintf(stderr, "CG_chillBuilder::CreateFloat( %f )\n", f);
- chillAST_FloatingLiteral *fl = new chillAST_FloatingLiteral(f); // parent not available
+ chillAST_FloatingLiteral *fl = new chillAST_FloatingLiteral(f, 1, NULL); // parent not available
return new CG_chillRepr(fl);
}
CG_outputRepr* CG_chillBuilder::CreateDouble(double d) const {
//fprintf(stderr, "CG_chillBuilder::CreateInt( %f )\n",d);
- chillAST_FloatingLiteral *dl = new chillAST_FloatingLiteral(d); // parent not available
+ chillAST_FloatingLiteral *dl = new chillAST_FloatingLiteral(d, 1, NULL); // parent not available
return new CG_chillRepr(dl);
}