use DNAN instead of NAN since there seem to be issues with gcc on solaris and the...
[rrdtool.git] / src / rrd_restore.c
index 4a328bd..53b25be 100644 (file)
@@ -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 */