Skip to content

Fix for MSVC compilation #128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix for MSVC compilation
  • Loading branch information
vertver committed Dec 22, 2021
commit 76187f9206914d0f92c63baf8d89e10809615e94
2 changes: 1 addition & 1 deletion clickhouse/columns/decimal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ inline bool mulOverflow(const Int128 & l, const T & r, Int128 * result)
template <typename T>
inline bool getSignBit(const T & v)
{
return std::signbit(v);
return v < static_cast<T>(0);
}

inline bool getSignBit(const Int128 & v)
Expand Down