8160934: isnan() is not available on older MSVC compilers
authoraivanov
Tue, 12 Jul 2016 11:17:30 +0300
changeset 41575 12390e0aabc4
parent 41574 7d3cca7fc05d
child 41576 96d3f5419106
8160934: isnan() is not available on older MSVC compilers Reviewed-by: prr, mschoene
jdk/src/java.desktop/share/native/liblcms/cmsintrp.c
--- a/jdk/src/java.desktop/share/native/liblcms/cmsintrp.c	Mon Jul 11 21:46:07 2016 +0300
+++ b/jdk/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