gmock-internal-utils.cc: Avoid implicit conversion from int to char
Fixes #3832 PiperOrigin-RevId: 449158813 Change-Id: Ibe85239ab1f123097b2c1b61616c9d611e5b90d0
This commit is contained in:
parent
5126f71661
commit
8d51dc50eb
@ -234,7 +234,7 @@ bool Base64Unescape(const std::string& encoded, std::string* decoded) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (bit_pos == 0) {
|
if (bit_pos == 0) {
|
||||||
dst |= src_bin << 2;
|
dst |= static_cast<char>(src_bin << 2);
|
||||||
bit_pos = 6;
|
bit_pos = 6;
|
||||||
} else {
|
} else {
|
||||||
dst |= static_cast<char>(src_bin >> (bit_pos - 2));
|
dst |= static_cast<char>(src_bin >> (bit_pos - 2));
|
||||||
|
Loading…
Reference in New Issue
Block a user