diff options
author | Dino Radakovic <dinor@google.com> | 2022-05-17 11:36:54 +0300 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-05-17 11:37:27 +0300 |
commit | 8d51dc50eb7e7698427fed81b85edad0e032112e (patch) | |
tree | 47f5049a51d3d6b3141971b4569fbdcca5fcb25a | |
parent | 5126f7166109666a9c0534021fb1a3038659494c (diff) |
gmock-internal-utils.cc: Avoid implicit conversion from int to char
Fixes #3832
PiperOrigin-RevId: 449158813
Change-Id: Ibe85239ab1f123097b2c1b61616c9d611e5b90d0
-rw-r--r-- | googlemock/src/gmock-internal-utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/src/gmock-internal-utils.cc b/googlemock/src/gmock-internal-utils.cc index bb0a6982..0a74841f 100644 --- a/googlemock/src/gmock-internal-utils.cc +++ b/googlemock/src/gmock-internal-utils.cc @@ -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)); |