mirror of
https://github.com/google/googletest.git
synced 2024-12-26 17:41:03 +08:00
Avoid implicit conversion from int to char
This commit is contained in:
parent
5376968f69
commit
72901486ba
@ -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…
x
Reference in New Issue
Block a user