GraphicsMagick: Use MAGICK_ISNAN() rather than isnan()

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.11289.1682783501.1602.graphicsmagick-commit@lists.sourceforge.net>
changeset c2a4d0286bcb in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=c2a4d0286bcb
summary: Use MAGICK_ISNAN() rather than isnan()

diffstat:

 coders/mat.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (39 lines):

diff -r d4264d9a4d85 -r c2a4d0286bcb coders/mat.c
--- a/coders/mat.c	Sat Apr 29 10:34:47 2023 -0500
+++ b/coders/mat.c	Sat Apr 29 10:51:20 2023 -0500
@@ -171,7 +171,7 @@
     if (*p > 0)
     {
       f = (*p / MaxVal) * (Quantum)(MaxRGB - q->red);  /* first multiplier should be in a range <0;1> */
-      if (isnan(f))
+      if (MAGICK_ISNAN(f))
         f=0.0;
       /*if(f<0) f=0; */
       if (f + q->red >= MaxRGB)
@@ -187,7 +187,7 @@
     if (*p < 0)
     {
       f = (*p / MinVal) * (Quantum)(MaxRGB - q->blue); /* first multiplier should be in a range <0;1>; *p<0 and MinVal<0. */
-      if (isnan(f))
+      if (MAGICK_ISNAN(f))
         f=0.0;
       /*if(f<0) f=0; */
       if (f + q->blue >= MaxRGB)
@@ -234,7 +234,7 @@
     if (*p > 0)
     {
       f = (*p / MaxVal) * (Quantum)(MaxRGB - q->red);
-      if (isnan(f))
+      if (MAGICK_ISNAN(f))
         f=0.0;
       /*if(f<0) f=0;    //Only for Assert, should be commented out */
       if (f + q->red < MaxRGB)
@@ -250,7 +250,7 @@
     if (*p < 0)
     {
       f = (*p / MinVal) * (Quantum)(MaxRGB - q->blue); /* f is positive only <0; inf> */
-      if (isnan(f))
+      if (MAGICK_ISNAN(f))
         f=0.0;
       /*if(f<0) f=0;    //Only for Assert, should be commented out */
       if (f + q->blue < MaxRGB)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.