This isn't AbleScript, we can just negate expressions :D

This commit is contained in:
Erin 2022-04-02 13:44:29 +02:00 committed by ondra05
parent 306e6cfc8e
commit ac42fdc5ca

View file

@ -6,7 +6,7 @@ pub fn char2num(c: char) -> isize {
'\\' => 54, '\\' => 54,
'.' => 55, '.' => 55,
'U' => -210, 'U' => -210,
'A'..='Z' => 0 - (c as isize) + 64, 'A'..='Z' => -(c as isize) + 64,
'a'..='z' => (c as isize) - 96, 'a'..='z' => (c as isize) - 96,
_ => 0, _ => 0,
} }