浏览代码

bugfix isfinite()

Johannes Ruehle 11 年之前
父节点
当前提交
940b310eec
共有 1 个文件被更改,包括 1 次插入1 次删除
  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