GPUtopozero: change isnan reference for compatibility with gcc<6 (#229)

LT1AB
Lijun Zhu 2021-02-08 10:07:41 -08:00 committed by GitHub
parent e8da2d947a
commit 785bb40efd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -9,14 +9,13 @@
#include <algorithm> #include <algorithm>
#include <vector> #include <vector>
#include <cmath> #include <math.h>
#include <cstdio> #include <cstdio>
#include "AkimaLib.h" #include "AkimaLib.h"
#include "Constants.h" #include "Constants.h"
using std::max; using std::max;
using std::min; using std::min;
using std::vector; using std::vector;
using std::isnan;
bool AkimaLib::aki_almostEqual(double x, double y) { bool AkimaLib::aki_almostEqual(double x, double y) {
bool ret = (abs(x - y) <= AKI_EPS) ? true : false; // Compressed version is a little cleaner bool ret = (abs(x - y) <= AKI_EPS) ? true : false; // Compressed version is a little cleaner