Browse Source

bugfix isfinite()

Johannes Ruehle 11 years ago
parent
commit
940b310eec
1 changed files with 1 additions and 1 deletions
  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