Explorar o código

bugfix isfinite()

Johannes Ruehle %!s(int64=11) %!d(string=hai) anos
pai
achega
940b310eec
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      core/basics/numerictools.h

+ 1 - 1
core/basics/numerictools.h

@@ -247,7 +247,7 @@ inline bool isFinite(double x)
 		NICE_ERROR("isFinite() not defined (and neither is boost found for compensation...)")
 	#endif
 #elif (__GNUC__ > 3)
-  return std::isnan(x);
+  return std::isfinite(x);
 #else
 	return finite(x);
 #endif