Skip to content

Commit e0fb329

Browse files
committed
revertme: use primitive_types for ADD/MUL/SUB which is better than ruint
1 parent 1611897 commit e0fb329

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

crates/revm/src/instructions/macros.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,9 @@ macro_rules! op2_u256_tuple {
215215
// gas!($interp, $gas);
216216

217217
pop_top!($interp, op1, op2);
218-
let (ret, ..) = op1.$op(*op2);
219-
*op2 = ret;
218+
let (ret, ..) =
219+
primitive_types::U256(op1.into_limbs()).$op(primitive_types::U256(op2.into_limbs()));
220+
*op2 = U256::from_limbs(ret.0);
220221

221222
Return::Continue
222223
}};

0 commit comments

Comments
 (0)