mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 12:17:58 +00:00
@@ -70,7 +70,7 @@ fn mul_div(a: u128, b: u128, c: u128) -> u128 {
|
||||
let ce: U256 = c.into();
|
||||
|
||||
let r = ae * be / ce;
|
||||
if r > u128::max_value().into() {
|
||||
if r > u128::MAX.into() {
|
||||
a
|
||||
} else {
|
||||
r.as_u128()
|
||||
|
||||
Reference in New Issue
Block a user