changeset 15883:010ea8bba2a7

8160934: isnan() is not available on older MSVC compilers Reviewed-by: prr, mschoene
author aivanov
date Tue, 12 Jul 2016 11:17:30 +0300
parents 8c893b0449d7
children 32b4c291b1d0
files src/java.desktop/share/native/liblcms/cmsintrp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/native/liblcms/cmsintrp.c	Mon Jul 11 21:46:07 2016 +0300
+++ b/src/java.desktop/share/native/liblcms/cmsintrp.c	Tue Jul 12 11:17:30 2016 +0300
@@ -244,7 +244,7 @@
 // To prevent out of bounds indexing
 cmsINLINE cmsFloat32Number fclamp(cmsFloat32Number v)
 {
-    return v < 0.0f || isnan(v) ? 0.0f : (v > 1.0f ? 1.0f : v);
+    return v < 0.0f || v != v ? 0.0f : (v > 1.0f ? 1.0f : v);
 }
 
 // Floating-point version of 1D interpolation