Avoid implicit conversion from int to char

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

View File

@ -315,7 +315,7 @@ void PrintTo(__uint128_t v, ::std::ostream* os) {
low = low / 10 + high_mod * 1844674407370955161 + carry / 10;
char digit = static_cast<char>(carry % 10);
*--p = '0' + digit;
*--p = static_cast<char>('0' + digit);
}
*os << p;
}