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/RemoveUnusedBrs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/passes/RemoveUnusedBrs.cpp') diff --git a/src/passes/RemoveUnusedBrs.cpp b/src/passes/RemoveUnusedBrs.cpp index 87f53a652..8a80cd3d2 100644 --- a/src/passes/RemoveUnusedBrs.cpp +++ b/src/passes/RemoveUnusedBrs.cpp @@ -756,7 +756,7 @@ struct RemoveUnusedBrs : public WalkerPass> { auto* c = binary->right->dynCast(); if (!c) return nullptr; uint32_t value = c->value.geti32(); - if (value >= std::numeric_limits::max()) return nullptr; + if (value >= uint32_t(std::numeric_limits::max())) return nullptr; return br; }; -- cgit v1.2.3