Skip to content

Commit

Permalink
Remove PPC64 specific macro testing
Browse files Browse the repository at this point in the history
  • Loading branch information
mborland committed Dec 7, 2023
1 parent fcc83b3 commit 7df51ba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/from_chars.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,6 @@ boost::charconv::from_chars_result boost::charconv::from_chars(const char* first
value = std::strtold(temp.c_str(), &ptr);
r.ptr = ptr;

#ifdef __PPC64__
// See: https://github.com/cppalliance/charconv/issues/103
// The value of errno should be 0 since the conversion is successful, but it is incorrect
if (value == 0 || value == HUGE_VALL)
Expand All @@ -226,9 +225,6 @@ boost::charconv::from_chars_result boost::charconv::from_chars(const char* first
{
r.ec = std::errc();
}
#else
r.ec = static_cast<std::errc>(errno);
#endif
}

return r;
Expand Down

0 comments on commit 7df51ba

Please sign in to comment.