"vscode:/vscode.git/clone" did not exist on "7cc548dcbf266d48c9b3fe8ec30c2f2ba8acb1d9"
Commit 90803817 authored by Copybara-Service's avatar Copybara-Service
Browse files

Merge pull request #3916 from asmodai27:main

PiperOrigin-RevId: 471062949
Change-Id: I3f063c441b3d4275d931016c431519c14e68d51c
parents afd902e9 5eaa1139
...@@ -199,9 +199,10 @@ GTEST_API_ void IllegalDoDefault(const char* file, int line) { ...@@ -199,9 +199,10 @@ GTEST_API_ void IllegalDoDefault(const char* file, int line) {
} }
constexpr char UnBase64Impl(char c, const char* const base64, char carry) { constexpr char UnBase64Impl(char c, const char* const base64, char carry) {
return *base64 == 0 ? static_cast<char>(65) return *base64 == 0 ? static_cast<char>(65)
: *base64 == c ? carry : *base64 == c
: UnBase64Impl(c, base64 + 1, carry + 1); ? carry
: UnBase64Impl(c, base64 + 1, static_cast<char>(carry + 1));
} }
template <size_t... I> template <size_t... I>
......
...@@ -315,7 +315,7 @@ void PrintTo(__uint128_t v, ::std::ostream* os) { ...@@ -315,7 +315,7 @@ void PrintTo(__uint128_t v, ::std::ostream* os) {
low = low / 10 + high_mod * 1844674407370955161 + carry / 10; low = low / 10 + high_mod * 1844674407370955161 + carry / 10;
char digit = static_cast<char>(carry % 10); char digit = static_cast<char>(carry % 10);
*--p = '0' + digit; *--p = static_cast<char>('0' + digit);
} }
*os << p; *os << p;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment