Skip to content

Commit 2a009a3

Browse files
committed
mirror i32.and evaluation fix for i64.and
1 parent d7da985 commit 2a009a3

File tree

1 file changed

+1
-1
lines changed
  • crates/wasmi/src/engine/executor/handler

1 file changed

+1
-1
lines changed

crates/wasmi/src/engine/executor/handler/eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub fn wasmi_i32_not_or(lhs: i32, rhs: i32) -> bool {
9393
}
9494

9595
pub fn wasmi_i64_and(lhs: i64, rhs: i64) -> bool {
96-
(rhs != 0) && (lhs != 0)
96+
(lhs & rhs) != 0
9797
}
9898

9999
pub fn wasmi_i64_not_and(lhs: i64, rhs: i64) -> bool {

0 commit comments

Comments
 (0)