Avoid implicit conversion from int to char

pull/3916/head
Jérôme Travert 2 years ago committed by GitHub
parent 5376968f69
commit 72901486ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      googlemock/src/gmock-internal-utils.cc

@ -201,7 +201,7 @@ GTEST_API_ void IllegalDoDefault(const char* file, int line) {
constexpr char UnBase64Impl(char c, const char* const base64, char carry) {
return *base64 == 0 ? static_cast<char>(65)
: *base64 == c ? carry
: UnBase64Impl(c, base64 + 1, carry + 1);
: UnBase64Impl(c, base64 + 1, static_cast<char>(carry + 1));
}
template <size_t... I>

Loading…
Cancel
Save