Common/Encoding: fix Base32 alphabet (oops)

This commit is contained in:
Treeston
2019-12-17 15:59:14 +01:00
committed by GitHub
parent 4d89da56c1
commit e457b77b4b

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