Fix for int conversion compiler warning.

This commit is contained in:
harry 2023-01-28 08:04:05 -05:00
parent 5582df13d7
commit a45aa73a4a
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ static const struct Base64Table
data[62] = '+'; // 62
data[63] = '/'; // 63
// create ascii->value mapping (but due to overlap, write it to highbit region)
for(a=0; a<64; ++a) data[data[a]^0x80] = a; //
for(a=0; a<64; ++a) data[data[a]^0x80] = static_cast<unsigned char>(a); //
data[((unsigned char)'=') ^ 0x80] = 0;
}
unsigned char operator[] (size_t pos) const { return data[pos]; }