Skip to content

Commit 8d51dc5

Browse files
dinordcopybara-github
authored andcommitted
gmock-internal-utils.cc: Avoid implicit conversion from int to char
Fixes #3832 PiperOrigin-RevId: 449158813 Change-Id: Ibe85239ab1f123097b2c1b61616c9d611e5b90d0
1 parent 5126f71 commit 8d51dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

googlemock/src/gmock-internal-utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ bool Base64Unescape(const std::string& encoded, std::string* decoded) {
234234
return false;
235235
}
236236
if (bit_pos == 0) {
237-
dst |= src_bin << 2;
237+
dst |= static_cast<char>(src_bin << 2);
238238
bit_pos = 6;
239239
} else {
240240
dst |= static_cast<char>(src_bin >> (bit_pos - 2));

0 commit comments

Comments
 (0)