summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/asm2wasm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/asm2wasm.h b/src/asm2wasm.h
index dbf142fd3..ca88fa883 100644
--- a/src/asm2wasm.h
+++ b/src/asm2wasm.h
@@ -864,8 +864,8 @@ Function* Asm2WasmBuilder::processFunction(Ref ast) {
}
abort_on("confusing assign", ast);
} else if (what == BINARY) {
- if (ast[1] == OR && ast[3][0] == NUM && ast[3][1]->getNumber() == 0) {
- auto ret = process(ast[2]); // just look through the ()|0 coercion
+ if ((ast[1] == OR || ast[1] == TRSHIFT) && ast[3][0] == NUM && ast[3][1]->getNumber() == 0) {
+ auto ret = process(ast[2]); // just look through the ()|0 or ()>>>0 coercion
fixCallType(ret, i32);
return ret;
}