Skip to content

Commit 7735ad3

Browse files
committed
Linux g++ fix w/ambiguous isnan
1 parent 9d94033 commit 7735ad3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libpdffit2/StringUtils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ string FormatValueWithStd::operator() (double x, double dx)
4141
out << x << setprecision(f_std_precision);
4242
// do not write dx when it is too small
4343
if (dx > fabs(x)*1e-8) out << " (" << dx << ')';
44-
else if (isnan(dx)) out << " (NaN)";
44+
else if (std::isnan(dx)) out << " (NaN)";
4545
// left-pad string to the width
4646
string rv = out.str();
4747
int rvlen = rv.size();

0 commit comments

Comments
 (0)