From 491183c375a9fbb2c8212d818ea0c58916eb63e5 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 3 Sep 2018 22:35:32 +0200 Subject: [PATCH] rogueviz: std::isnan to prevent errors on some compilers --- rogueviz-pentagonal.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rogueviz-pentagonal.cpp b/rogueviz-pentagonal.cpp index 518cd5fb..80e6a29a 100644 --- a/rogueviz-pentagonal.cpp +++ b/rogueviz-pentagonal.cpp @@ -241,8 +241,8 @@ void create_model() { testplane[2] = tester * tria[(i+1)%5]; hyperpoint f = facingdir(testplane); // printf("%lf ", f[0]); - if(f[0] > -1e-6 || isnan(f[0])) good1++; - if(f[0] < +1e-6 || isnan(f[0])) good2++; + if(f[0] > -1e-6 || std::isnan(f[0])) good1++; + if(f[0] < +1e-6 || std::isnan(f[0])) good2++; } // printf("\n"); if(good1 == 5 || good2 == 5) {ctr = h; break; }