mirror of
https://github.com/google/googletest.git
synced 2024-12-27 10:11:03 +08:00
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;
|
||||
}
|
||||
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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user