diff options
author | Daniel Wirtz <dcode@dcode.io> | 2018-05-09 22:01:18 +0200 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2018-05-09 13:01:18 -0700 |
commit | 6a9ececa2fc9eca99a12b65ca130612942babdce (patch) | |
tree | d1b79577dc98333bc2d5e708633fe71172c594de /src/passes/Print.cpp | |
parent | 991974c2049796676a967b5a5d3ffe195e5d818d (diff) | |
download | binaryen-6a9ececa2fc9eca99a12b65ca130612942babdce.tar.gz binaryen-6a9ececa2fc9eca99a12b65ca130612942babdce.tar.bz2 binaryen-6a9ececa2fc9eca99a12b65ca130612942babdce.zip |
Fix MSVC warnings when compiling the binaryen target (#1535)
Diffstat (limited to 'src/passes/Print.cpp')
-rw-r--r-- | src/passes/Print.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/passes/Print.cpp b/src/passes/Print.cpp index 700ddf734..f894c0d36 100644 --- a/src/passes/Print.cpp +++ b/src/passes/Print.cpp @@ -26,11 +26,11 @@ namespace wasm { -static int isFullForced() { +static bool isFullForced() { if (getenv("BINARYEN_PRINT_FULL")) { - return std::stoi(getenv("BINARYEN_PRINT_FULL")); + return std::stoi(getenv("BINARYEN_PRINT_FULL")) != 0; } - return 0; + return false; } struct PrintSExpression : public Visitor<PrintSExpression> { |