author | alfadur |
Fri, 05 Jul 2019 23:40:03 +0300 | |
changeset 15221 | 387345a14b3f |
parent 15220 | 13041ae61ac5 |
child 15222 | b32c52c76977 |
--- 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') } }