summaryrefslogtreecommitdiffstats
path: root/googlemock/src
diff options
context:
space:
mode:
authorDino Radakovic <dinor@google.com>2022-05-17 08:36:54 (GMT)
committerCopybara-Service <copybara-worker@google.com>2022-05-17 08:37:27 (GMT)
commit8d51dc50eb7e7698427fed81b85edad0e032112e (patch)
tree47f5049a51d3d6b3141971b4569fbdcca5fcb25a /googlemock/src
parent5126f7166109666a9c0534021fb1a3038659494c (diff)
downloadgoogletest-8d51dc50eb7e7698427fed81b85edad0e032112e.zip
googletest-8d51dc50eb7e7698427fed81b85edad0e032112e.tar.gz
googletest-8d51dc50eb7e7698427fed81b85edad0e032112e.tar.bz2
gmock-internal-utils.cc: Avoid implicit conversion from int to char
Fixes #3832 PiperOrigin-RevId: 449158813 Change-Id: Ibe85239ab1f123097b2c1b61616c9d611e5b90d0
Diffstat (limited to 'googlemock/src')
-rw-r--r--googlemock/src/gmock-internal-utils.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/src/gmock-internal-utils.cc b/googlemock/src/gmock-internal-utils.cc
index bb0a698..0a74841 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));