mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Try to use double in set_multiplier for wide_integer_from_builtin
This commit is contained in:
parent
662444fe13
commit
4b1325ba63
@ -310,11 +310,7 @@ struct integer<Bits, Signed>::_impl
|
||||
return;
|
||||
}
|
||||
|
||||
const long double rhs_long_double = (static_cast<long double>(rhs) < 0)
|
||||
? -static_cast<long double>(rhs)
|
||||
: rhs;
|
||||
|
||||
set_multiplier(self, rhs_long_double);
|
||||
set_multiplier(self, rhs);
|
||||
|
||||
if (rhs < 0)
|
||||
self = -self;
|
||||
|
Loading…
Reference in New Issue
Block a user