feat(bytecode): add signed remainder operation
This commit is contained in:
parent
14c7cbb08b
commit
5f77e04826
|
@ -237,6 +237,10 @@ impl Process {
|
|||
Some(x) => x,
|
||||
None => return Err(Error::DivisionByZero),
|
||||
},
|
||||
B::Srem => match (a as i128).checked_rem(b as i128) {
|
||||
Some(x) => x as u128,
|
||||
None => return Err(Error::DivisionByZero),
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue