Skip to content

Commit

Permalink
One more minor patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinzii committed Apr 1, 2024
1 parent 3289a0f commit a4cd65c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/ccmath/math/basic/impl/nan_double_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ namespace ccm::internal
std::uint64_t dbl_bits {0};
bool has_hex_been_detected {false};


if (arg == nullptr)
{
return std::numeric_limits<double>::quiet_NaN(); // Default NaN
}


// NOLINTBEGIN
Expand All @@ -48,6 +51,7 @@ namespace ccm::internal
// This is a patch to fix that issue.

// Check that the last character is 1 and no other characters have been provided other than zero.
if
msvc_one_digit_patch = true;
#endif

Expand Down

0 comments on commit a4cd65c

Please sign in to comment.