mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
1. fix format
This commit is contained in:
parent
92bcf9f966
commit
a1b13b08b1
@ -334,9 +334,8 @@ ReturnType readIntTextImpl(T & x, ReadBuffer & buf)
|
||||
if (buf.count() - initial_pos + 1 >= std::numeric_limits<T>::max_digits10)
|
||||
{
|
||||
T signed_res = negative ? -res : res;
|
||||
if (common::mulOverflow<T>(signed_res, 10, signed_res)
|
||||
|| (negative ? common::subOverflow<T>(signed_res, (*buf.position() - '0'), signed_res) :
|
||||
common::addOverflow<T>(signed_res, (*buf.position() - '0'), signed_res)))
|
||||
if (common::mulOverflow<T>(signed_res, 10, signed_res) || (negative ? common::subOverflow<T>(signed_res, (*buf.position() - '0'), signed_res) :
|
||||
common::addOverflow<T>(signed_res, (*buf.position() - '0'), signed_res)))
|
||||
return ReturnType(false);
|
||||
|
||||
res = negative ? -signed_res : signed_res;
|
||||
|
Loading…
Reference in New Issue
Block a user