Commit 8d51dc50 authored by Dino Radakovic's avatar Dino Radakovic Committed by Copybara-Service
Browse files

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

Fixes #3832

PiperOrigin-RevId: 449158813
Change-Id: Ibe85239ab1f123097b2c1b61616c9d611e5b90d0
parent 5126f716
......@@ -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));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment