File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ constexpr uint128_t gcd(uint128_t a, uint128_t b) noexcept
284284constexpr int128_t gcd (const int128_t a, const int128_t b) noexcept
285285{
286286 const auto res {static_cast <int128_t >(gcd (static_cast <uint128_t >(abs (a)), static_cast <uint128_t >(abs (b))))};
287- return a < 0 != b < 0 ? -res : res;
287+ return ( a < 0 ) != ( b < 0 ) ? -res : res;
288288}
289289
290290constexpr uint128_t lcm (const uint128_t a, const uint128_t b) noexcept
@@ -304,7 +304,7 @@ constexpr uint128_t lcm(const uint128_t a, const uint128_t b) noexcept
304304constexpr int128_t lcm (const int128_t a, const int128_t b) noexcept
305305{
306306 const auto res {static_cast <int128_t >(lcm (static_cast <uint128_t >(abs (a)), static_cast <uint128_t >(abs (b))))};
307- return a < 0 != b < 0 ? -res : res;
307+ return ( a < 0 ) != ( b < 0 ) ? -res : res;
308308}
309309
310310} // namespace int128
You can’t perform that action at this time.
0 commit comments