summaryrefslogtreecommitdiff
path: root/src/passes/Print.cpp
diff options
context:
space:
mode:
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> {