Fix shift ordering

This commit is contained in:
Daniel Lubarov 2022-08-10 21:47:37 -07:00
parent 68de3ee0c6
commit 288ff63945

View File

@ -53,8 +53,8 @@ fn constant_propagation(code: &mut Vec<Item>) {
"DIV" => Some(x.checked_div(y).unwrap_or(U256::zero())),
"MOD" => Some(x.checked_rem(y).unwrap_or(U256::zero())),
"EXP" => Some(x.overflowing_pow(y).0),
"SHL" => Some(x << y),
"SHR" => Some(x >> y),
"SHL" => Some(y << x),
"SHR" => Some(y >> x),
"AND" => Some(x & y),
"OR" => Some(x | y),
"XOR" => Some(x ^ y),