aboutsummaryrefslogtreecommitdiff
path: root/src/common/Encoding/Base32.cpp
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2019-12-17 15:59:14 +0100
committerGitHub <noreply@github.com>2019-12-17 15:59:14 +0100
commite457b77b4b8d8fcb8dcb916170e3b40273f0b966 (patch)
treeab214c85548e5ec75b6ef64600aeb34ac9e39290 /src/common/Encoding/Base32.cpp
parent4d89da56c18542f78f7ca29d57a06f08ffa3cef7 (diff)
Common/Encoding: fix Base32 alphabet (oops)
Diffstat (limited to 'src/common/Encoding/Base32.cpp')
-rw-r--r--src/common/Encoding/Base32.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/Encoding/Base32.cpp b/src/common/Encoding/Base32.cpp
index 70460b4c86c..f93e78c52b9 100644
--- a/src/common/Encoding/Base32.cpp
+++ b/src/common/Encoding/Base32.cpp
@@ -36,9 +36,10 @@ struct B32Impl
{
if (v == '0') return Decode('O');
if (v == '1') return Decode('l');
+ if (v == '8') return Decode('B');
if (('A' <= v) && (v <= 'Z')) return (v-'A');
if (('a' <= v) && (v <= 'z')) return (v-'a');
- if (('2' <= v) && (v <= '8')) return (v-'2')+26;
+ if (('2' <= v) && (v <= '7')) return (v-'2')+26;
return DECODE_ERROR;
}
};