diff options
author | Copybara-Service <copybara-worker@google.com> | 2022-08-30 19:40:01 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-08-30 19:40:01 (GMT) |
commit | 9080381758fad853aa17ba1c3255ee8a35e452ca (patch) | |
tree | 6251e3dead01c06ebdc6fef6538f5591cd0fd2ae /googlemock/src | |
parent | afd902e992b720d1b3e106bc5e425a5768872265 (diff) | |
parent | 5eaa1139038076ed9bc029ab6518844a1b03ea7f (diff) | |
download | googletest-9080381758fad853aa17ba1c3255ee8a35e452ca.zip googletest-9080381758fad853aa17ba1c3255ee8a35e452ca.tar.gz googletest-9080381758fad853aa17ba1c3255ee8a35e452ca.tar.bz2 |
Merge pull request #3916 from asmodai27:main
PiperOrigin-RevId: 471062949
Change-Id: I3f063c441b3d4275d931016c431519c14e68d51c
Diffstat (limited to 'googlemock/src')
-rw-r--r-- | googlemock/src/gmock-internal-utils.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/googlemock/src/gmock-internal-utils.cc b/googlemock/src/gmock-internal-utils.cc index f7d740c..7bfff02 100644 --- a/googlemock/src/gmock-internal-utils.cc +++ b/googlemock/src/gmock-internal-utils.cc @@ -199,9 +199,10 @@ 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); + return *base64 == 0 ? static_cast<char>(65) + : *base64 == c + ? carry + : UnBase64Impl(c, base64 + 1, static_cast<char>(carry + 1)); } template <size_t... I> |