@@ -141,8 +141,7 @@ std::string EncodeBase64(Span<const unsigned char> input)
141
141
142
142
std::vector<unsigned char > DecodeBase64 (const char * p, bool * pf_invalid)
143
143
{
144
- static const int decode64_table[256 ] =
145
- {
144
+ static const int8_t decode64_table[256 ]{
146
145
-1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
147
146
-1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
148
147
-1 , -1 , -1 , 62 , -1 , -1 , -1 , 63 , 52 , 53 , 54 , 55 , 56 , 57 , 58 , 59 , 60 , 61 , -1 , -1 ,
@@ -220,8 +219,7 @@ std::string EncodeBase32(const std::string& str, bool pad)
220
219
221
220
std::vector<unsigned char > DecodeBase32 (const char * p, bool * pf_invalid)
222
221
{
223
- static const int decode32_table[256 ] =
224
- {
222
+ static const int8_t decode32_table[256 ]{
225
223
-1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
226
224
-1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 ,
227
225
-1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , -1 , 26 , 27 , 28 , 29 , 30 , 31 , -1 , -1 , -1 , -1 ,
0 commit comments