Avoid implicit conversion from int to char

This commit is contained in:
Jérôme Travert 2022-06-26 18:59:46 +02:00 committed by GitHub
parent 5376968f69
commit 72901486ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>