AK: Fix base64 decoding '/'

When creating the lookup table, it wouldn't add the last
character
This commit is contained in:
BenJilks 2020-10-18 14:34:27 +00:00 committed by Andreas Kling
parent 1c27568ab0
commit 29ada654b1

View file

@ -56,7 +56,7 @@ static constexpr auto make_lookup_table()
{
constexpr auto alphabet = make_alphabet();
Array<u8, 256> table {};
for (size_t i = 0; i < alphabet.size() - 1; ++i) {
for (size_t i = 0; i < alphabet.size(); ++i) {
table[alphabet[i]] = i;
}
return table;