mirror of
https://github.com/google/googletest.git
synced 2024-12-27 10:11:03 +08:00
Avoid implicit conversion from int to char
This commit is contained in:
parent
72901486ba
commit
5eaa113903
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user