Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysante committed Dec 28, 2023
1 parent 2646ac5 commit eebf359
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/APFloat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ APFloat::APFloat(long double value, APFloatPrec precision):
_mantWidth(static_cast<uint32_t>(precision.mantissaWidth)),
_expWidth(static_cast<uint32_t>(precision.exponentWidth)) {
assert(precision == APFloatPrec::Single() ||
precision == APFloatPrec::Double);
precision == APFloatPrec::Double());
if (isSingle()) {
_f32 = static_cast<float>(value);
}
Expand Down Expand Up @@ -272,10 +272,6 @@ bool APFloat::isNaN() const {
}

std::string APFloat::toString() const {
#if defined(__linux__)
// Getting weird linker errors when using stringstream here
std::terminate();
#else
std::stringstream sstr;
sstr << std::fixed;
if (isSingle()) {
Expand All @@ -285,7 +281,6 @@ std::string APFloat::toString() const {
sstr << _f64;
}
return std::move(sstr).str();
#endif
}

std::size_t APFloat::hash() const {
Expand Down

0 comments on commit eebf359

Please sign in to comment.