From 0b4db65ca3dbf2516e1960f1daa8274fbaf2e148 Mon Sep 17 00:00:00 2001 From: Erin Date: Sat, 2 Apr 2022 13:44:29 +0200 Subject: [PATCH] This isn't AbleScript, we can just negate expressions :D --- ablescript/src/base_55.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ablescript/src/base_55.rs b/ablescript/src/base_55.rs index 9849fb6..c960053 100644 --- a/ablescript/src/base_55.rs +++ b/ablescript/src/base_55.rs @@ -6,7 +6,7 @@ pub fn char2num(c: char) -> isize { '\\' => 54, '.' => 55, 'U' => -210, - 'A'..='Z' => 0 - (c as isize) + 64, + 'A'..='Z' => -(c as isize) + 64, 'a'..='z' => (c as isize) - 96, _ => 0, }