From 8d51dc50eb7e7698427fed81b85edad0e032112e Mon Sep 17 00:00:00 2001 From: Dino Radakovic Date: Tue, 17 May 2022 01:36:54 -0700 Subject: gmock-internal-utils.cc: Avoid implicit conversion from int to char Fixes #3832 PiperOrigin-RevId: 449158813 Change-Id: Ibe85239ab1f123097b2c1b61616c9d611e5b90d0 --- googlemock/src/gmock-internal-utils.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(src_bin << 2); bit_pos = 6; } else { dst |= static_cast(src_bin >> (bit_pos - 2)); -- cgit v0.12