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 /lib | |
parent | fad36d9324fd13d720bc9366f4de6e968d8b8963 (diff) | |
download | chill-51c4aaaa21a124abafe3f950e12c3c25ddbe0812.tar.gz chill-51c4aaaa21a124abafe3f950e12c3c25ddbe0812.tar.bz2 chill-51c4aaaa21a124abafe3f950e12c3c25ddbe0812.zip |
floating literal fix
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/chillcg/src/CG_chillBuilder.cc | 4 |
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); } |