use DNAN instead of NAN since there seem to be issues with gcc on solaris and the...
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 2 Jun 2008 06:21:42 +0000 (06:21 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Mon, 2 Jun 2008 06:21:42 +0000 (06:21 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1394 a5681a0c-68f1-0310-ab6d-d61299d08faa

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 */