From fcfa83a8a6bffa7022ffb182cc8d52cb8fd72db3 Mon Sep 17 00:00:00 2001 From: Alex Bethel Date: Sat, 29 May 2021 14:24:46 -0500 Subject: [PATCH] Make base-55 encoding & decoding match Changed "U"'s encoding to -210, so now when the README claims "U = -210", it's actually accurate :) --- src/base_55.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base_55.rs b/src/base_55.rs index bb9d5ce4..fa612ebd 100644 --- a/src/base_55.rs +++ b/src/base_55.rs @@ -5,7 +5,7 @@ pub fn char2num(character: char) -> i32 { 'X' => -24, 'W' => -23, 'V' => -22, - 'U' => -21, + 'U' => -210, 'T' => -20, 'R' => -18, 'S' => -19,