rust/hedgewars-server/src/handlers.rs
changeset 15216 387345a14b3f
parent 15176 f6115638aa92
child 15439 a158ff8f84ef
equal deleted inserted replaced
15215:13041ae61ac5 15216:387345a14b3f
    57             false
    57             false
    58         } else {
    58         } else {
    59             #[inline]
    59             #[inline]
    60             fn convert(c: u8) -> u8 {
    60             fn convert(c: u8) -> u8 {
    61                 if c > b'9' {
    61                 if c > b'9' {
    62                     c.overflowing_sub(b'a').0.saturating_add(10)
    62                     c.wrapping_sub(b'a').saturating_add(10)
    63                 } else {
    63                 } else {
    64                     c.overflowing_sub(b'0').0
    64                     c.wrapping_sub(b'0')
    65                 }
    65                 }
    66             }
    66             }
    67 
    67 
    68             other
    68             other
    69                 .as_bytes()
    69                 .as_bytes()