Fix __ulongrem stdlib edge case (#531)

The implementation is off-by-one.

---------

Signed-off-by: xermicus <cyrill@parity.io>
This commit is contained in:
xermicus authored and GitHub committed 2026-05-28 17:25:23 +02:00
1 parent c67b95805c
commit ae8033130b
5 files changed
+107 -4

No files matched your search

+7
View File
@@ -353,6 +353,13 @@ sol!(
);
case!("Bitwise.sol", Bitwise, opByteCall, bitwise_byte, index: U256, value: U256);
sol!(
contract UlongRem {
function bigMulMod(uint a, uint b, uint m) external pure returns (uint);
}
);
case!("UlongRem.sol", UlongRem, bigMulModCall, ulongrem_big_mulmod, a: U256, b: U256, m: U256);
sol!(
contract Storage {
function transient(uint value) public returns (uint ret);