提交 fb06d7ac 编写于 作者: P Povilas Kanapickas

Use isfinite() instead of finite()

HAVE_FINITE only checks for isfinite(). This leads to situation when
isfinite() is present, but finite() (which is old and deprecated) is
not.
上级 d87c14f2
......@@ -2294,7 +2294,7 @@ get_constant (MonoImage *m, MonoTypeEnum t, guint32 blob_index)
/* Crazy solaris systems doesn't have isnormal */
#ifdef HAVE_FINITE
normal = finite (r);
normal = isfinite (r);
#else
normal = isnormal (r);
#endif
......@@ -2314,7 +2314,7 @@ get_constant (MonoImage *m, MonoTypeEnum t, guint32 blob_index)
/* Crazy solaris systems doesn't have isnormal */
#ifdef HAVE_FINITE
normal = finite (r);
normal = isfinite (r);
#else
normal = isnormal (r);
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册