summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
authorDaniel Wirtz <dcode@dcode.io>2018-05-09 22:01:18 +0200
committerAlon Zakai <alonzakai@gmail.com>2018-05-09 13:01:18 -0700
commit6a9ececa2fc9eca99a12b65ca130612942babdce (patch)
treed1b79577dc98333bc2d5e708633fe71172c594de /src/passes/Print.cpp
parent991974c2049796676a967b5a5d3ffe195e5d818d (diff)
downloadbinaryen-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.cpp6
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> {