Common/Encoding: fix Base32 alphabet (oops)

(cherry picked from commit e457b77b4b)
This commit is contained in:
Treeston
2019-12-17 15:59:14 +01:00
committed by Shauren
parent 64eb65cd45
commit 12f9423efa

View File

@@ -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;
}
};