mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:38:12 +00:00
AK: Fix base64 decoding '/'
When creating the lookup table, it wouldn't add the last character
This commit is contained in:
parent
1c27568ab0
commit
29ada654b1
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ static constexpr auto make_lookup_table()
|
||||||
{
|
{
|
||||||
constexpr auto alphabet = make_alphabet();
|
constexpr auto alphabet = make_alphabet();
|
||||||
Array<u8, 256> table {};
|
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;
|
table[alphabet[i]] = i;
|
||||||
}
|
}
|
||||||
return table;
|
return table;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue