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 <[EMAIL PROTECTED]>
---
 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

Attachment: signature.asc
Description: Digital signature

_______________________________________________
rrd-developers mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-developers

Reply via email to