changeset 15221 | 387345a14b3f |
parent 15181 | f6115638aa92 |
child 15444 | a158ff8f84ef |
--- a/rust/hedgewars-server/src/handlers.rs Fri Jul 05 21:48:01 2019 +0300 +++ b/rust/hedgewars-server/src/handlers.rs Fri Jul 05 23:40:03 2019 +0300 @@ -59,9 +59,9 @@ #[inline] fn convert(c: u8) -> u8 { if c > b'9' { - c.overflowing_sub(b'a').0.saturating_add(10) + c.wrapping_sub(b'a').saturating_add(10) } else { - c.overflowing_sub(b'0').0 + c.wrapping_sub(b'0') } }