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;
|
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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user