Code

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@1394 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_restore.c

index 4a328bdf0ea15bdc4f6849dd5a0a8569641f63a9..53b25be2ef49d48b6771b543950fb7dd0444c08b 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 */