1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-10 00:15:31 +01:00

use std::isnan since c++11 provides it and wxIsNan is broken in c++11

This commit is contained in:
Darrell Walisser
2016-09-03 15:44:12 -04:00
parent 92aa05237b
commit 5f8c48d520
3 changed files with 10 additions and 10 deletions

View File

@@ -32,7 +32,7 @@
#include <wx/intl.h>
#include <locale.h> // for setlocale and LC_ALL
#include <math.h>
#include <cmath>
#include <wx/log.h>
// ----------------------------------------------------------------------------
@@ -134,11 +134,11 @@ wxString NumberFormatter::ToString(double val, int precision, int style)
format.Printf(wxT("%%.%df"), precision);
}
if (isnan(val))
if (std::isnan(val))
{
return _("NaN");
}
if (isinf(val))
if (std::isinf(val))
{
return _("-Infinity");
}