From 6a9ececa2fc9eca99a12b65ca130612942babdce Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Wed, 9 May 2018 22:01:18 +0200 Subject: Fix MSVC warnings when compiling the binaryen target (#1535) --- src/passes/Print.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/passes/Print.cpp') 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 { -- cgit v1.2.3