[PATCH] rrd_restore.c: Use DNAN instead of NAN.

View: New views
1 Messages — Rating Filter:   Alert me  

[PATCH] rrd_restore.c: Use DNAN instead of NAN.

by Sebastian Harl :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

At least some combination of Solaris and GCC seems to not be able to choke
with NAN correctly - "Carrot" reported a build failure in IRC.

Signed-off-by: Sebastian Harl <sh@...>
---
 program/src/rrd_restore.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/program/src/rrd_restore.c b/program/src/rrd_restore.c
index 0615321..f646167 100644
--- a/program/src/rrd_restore.c
+++ b/program/src/rrd_restore.c
@@ -163,7 +163,7 @@ static int value_check_range(
 
     if (((!isnan(min)) && (*rrd_value < min))
         || ((!isnan(max)) && (*rrd_value > max)))
-        *rrd_value = NAN;
+        *rrd_value = DNAN;
 
     return (0);
 }                       /* int value_check_range */
--
1.5.5.1



_______________________________________________
rrd-developers mailing list
rrd-developers@...
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

signature.asc (196 bytes) Download Attachment