changeset 11939:01440b695cb5

8160934: isnan() is not available on older MSVC compilers Reviewed-by: prr, mschoene
author aivanov
date Tue, 12 Jul 2016 11:02:26 +0300
parents f75edc10277f
children 1a32d9a1ee13
files src/share/native/sun/java2d/cmm/lcms/cmsintrp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/java2d/cmm/lcms/cmsintrp.c	Mon Jul 11 19:29:51 2016 +0300
+++ b/src/share/native/sun/java2d/cmm/lcms/cmsintrp.c	Tue Jul 12 11:02:26 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