gmock-internal-utils.cc: Avoid implicit conversion from int to char

Fixes #3832

PiperOrigin-RevId: 449158813
Change-Id: Ibe85239ab1f123097b2c1b61616c9d611e5b90d0
This commit is contained in:
Dino Radakovic 2022-05-17 01:36:54 -07:00 committed by Copybara-Service
parent 5126f71661
commit 8d51dc50eb

View File

@ -234,7 +234,7 @@ bool Base64Unescape(const std::string& encoded, std::string* decoded) {
return false;
}
if (bit_pos == 0) {
dst |= src_bin << 2;
dst |= static_cast<char>(src_bin << 2);
bit_pos = 6;
} else {
dst |= static_cast<char>(src_bin >> (bit_pos - 2));