constructing a string from nullptr is undefined behavior

This commit is contained in:
Sébastien Loriot 2021-11-09 16:20:48 +01:00
parent 6905342894
commit 6680a6e6f9
1 changed files with 1 additions and 1 deletions

View File

@ -423,7 +423,7 @@ inline std::string BigFloatRep::toString(long prec, bool sci) const {
else
return r.rep;
}
return nullptr;
return std::string();
}
inline void BigFloatRep::dump() const {