1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-07 12:12:23 +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

@@ -46,13 +46,12 @@ out.
#include "BlockFile.h"
#include <float.h>
#include <math.h>
#include <cmath>
#include <wx/utils.h>
#include <wx/filefn.h>
#include <wx/ffile.h>
#include <wx/log.h>
#include <wx/math.h>
#include "Internat.h"
#include "MemoryX.h"
@@ -317,7 +316,7 @@ static void ComputeMinMax256(float *summary256,
max = summary256[3*i+1];
else if (!(summary256[3*i+1] <= max))
bad++;
if (wxIsNaN(summary256[3*i+2]))
if (std::isnan(summary256[3*i+2]))
bad++;
if (summary256[3*i+2] < -1 || summary256[3*i+2] > 1)
bad++;