Browse Source

bugfix isfinite()

Johannes Ruehle 11 năm trước cách đây
mục cha
commit
940b310eec
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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