summaryrefslogtreecommitdiff
path: root/src/cfg/Relooper.h
diff options
context:
space:
mode:
authorBSalita <BSalita@yahoo.com>2016-05-11 19:30:32 +0200
committerAlon Zakai <alonzakai@gmail.com>2016-05-11 10:30:32 -0700
commit3e526d08aceaba90aa2449e8bc9975dadb047a6c (patch)
treea5163a66ede6afc8b0a61bc94c0bf634bfde40c3 /src/cfg/Relooper.h
parentca5a37818565504ce78f6a807b4f8b7f6ea0b5ba (diff)
downloadbinaryen-3e526d08aceaba90aa2449e8bc9975dadb047a6c.tar.gz
binaryen-3e526d08aceaba90aa2449e8bc9975dadb047a6c.tar.bz2
binaryen-3e526d08aceaba90aa2449e8bc9975dadb047a6c.zip
Fix VS warning in Relooper.h (#467)
Diffstat (limited to 'src/cfg/Relooper.h')
-rw-r--r--src/cfg/Relooper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cfg/Relooper.h b/src/cfg/Relooper.h
index efe6a3c8f..706b3d065 100644
--- a/src/cfg/Relooper.h
+++ b/src/cfg/Relooper.h
@@ -347,7 +347,7 @@ struct Relooper {
wasm::Expression* Render(RelooperBuilder& Builder);
// Sets whether we must emulate everything with switch-loop code
- void SetEmulate(int E) { Emulate = E; }
+ void SetEmulate(int E) { Emulate = !!E; }
// Sets us to try to minimize size
void SetMinSize(bool MinSize_) { MinSize = MinSize_; }