diff options
author | Alon Zakai <alonzakai@gmail.com> | 2015-10-29 19:59:10 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2015-10-29 19:59:10 -0700 |
commit | 3e8516cb75e7941da0b16443fbd4b4a298fa3644 (patch) | |
tree | cda4a993ac8b30ec507f930edf02920142e25531 /src/simple_ast.h | |
parent | 88b6549b74dd767733cd823de410e00067a79756 (diff) | |
download | binaryen-3e8516cb75e7941da0b16443fbd4b4a298fa3644.tar.gz binaryen-3e8516cb75e7941da0b16443fbd4b4a298fa3644.tar.bz2 binaryen-3e8516cb75e7941da0b16443fbd4b4a298fa3644.zip |
double fixes
Diffstat (limited to 'src/simple_ast.h')
-rw-r--r-- | src/simple_ast.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/simple_ast.h b/src/simple_ast.h index 5d5e3f201..a04fbf712 100644 --- a/src/simple_ast.h +++ b/src/simple_ast.h @@ -1516,3 +1516,11 @@ public: } }; +// Tolerates 0.0 in the input; does not trust a +() to be there. +class DotZeroValueBuilder : public ValueBuilder { +public: + static Ref makeDouble(double num) { + return makePrefix(PLUS, ValueBuilder::makeDouble(num)); + } +}; + |