diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-06-29 17:16:22 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-06-29 17:16:22 +0100 |
| commit | 4fa6821e0645ff61a9380cd090abff472205c630 (patch) | |
| tree | bd95f13b2dc0bd9692681f50c365d2914a520bfe /nihil.ucl/real.ccm | |
| parent | e5180acf5f2dfac788e8c12886095ed1ac66fae5 (diff) | |
| download | nihil-4fa6821e0645ff61a9380cd090abff472205c630.tar.gz nihil-4fa6821e0645ff61a9380cd090abff472205c630.tar.bz2 | |
add clang-tidy support
Diffstat (limited to 'nihil.ucl/real.ccm')
| -rw-r--r-- | nihil.ucl/real.ccm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nihil.ucl/real.ccm b/nihil.ucl/real.ccm index c491553..f425a9a 100644 --- a/nihil.ucl/real.ccm +++ b/nihil.ucl/real.ccm @@ -78,7 +78,7 @@ export constexpr auto operator""_ucl (long double d) -> real d < static_cast<long double>(std::numeric_limits<double>::min())) throw std::out_of_range("literal out of range"); - return real(d); + return real(static_cast<double>(d)); } } // namespace nihil::ucl::literals |
