diff options
author | Jérôme Travert <asmodai27@users.noreply.github.com> | 2022-06-26 16:59:46 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-26 16:59:46 (GMT) |
commit | 72901486ba39f8f4df9d0386b0521b711ef374a2 (patch) | |
tree | 82960cceaa81f368a6abb5f1db5254e1b3df4b22 | |
parent | 5376968f6948923e2411081fd9372e71a59d8e77 (diff) | |
download | googletest-72901486ba39f8f4df9d0386b0521b711ef374a2.zip googletest-72901486ba39f8f4df9d0386b0521b711ef374a2.tar.gz googletest-72901486ba39f8f4df9d0386b0521b711ef374a2.tar.bz2 |
Avoid implicit conversion from int to char
-rw-r--r-- | googlemock/src/gmock-internal-utils.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/src/gmock-internal-utils.cc b/googlemock/src/gmock-internal-utils.cc index 0a74841..2d7c5c4 100644 --- a/googlemock/src/gmock-internal-utils.cc +++ b/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> |