mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +00:00
prevent -Wimplicit-fallthrough= warning with gcc 8.2.1
This commit is contained in:
parent
a3a0d9c0ec
commit
4234eea1bf
1 changed files with 2 additions and 2 deletions
|
@ -229,16 +229,16 @@ inline std::string base64_decode(const char* in, size_t len)
|
||||||
const auto fourth = dmap.at(in[3]);
|
const auto fourth = dmap.at(in[3]);
|
||||||
result[i + 2] = (third << 6) | fourth;
|
result[i + 2] = (third << 6) | fourth;
|
||||||
bytes_wr++;
|
bytes_wr++;
|
||||||
//FALLTHROUGH
|
|
||||||
}
|
}
|
||||||
|
//FALLTHROUGH
|
||||||
case 3:
|
case 3:
|
||||||
{
|
{
|
||||||
const auto second = dmap.at(in[1]);
|
const auto second = dmap.at(in[1]);
|
||||||
const auto third = dmap.at(in[2]);
|
const auto third = dmap.at(in[2]);
|
||||||
result[i + 1] = (second << 4) | (third >> 2);
|
result[i + 1] = (second << 4) | (third >> 2);
|
||||||
bytes_wr++;
|
bytes_wr++;
|
||||||
//FALLTHROUGH
|
|
||||||
}
|
}
|
||||||
|
//FALLTHROUGH
|
||||||
case 2:
|
case 2:
|
||||||
{
|
{
|
||||||
const auto first = dmap.at(in[0]);
|
const auto first = dmap.at(in[0]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue