From 3e45743e9d61ebc5e7ef50ec89755a4af2828723 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 2 Jun 2008 06:21:42 +0000 Subject: [PATCH] use DNAN instead of NAN since there seem to be issues with gcc on solaris and the NAN experession (and we use DNAN everywhere else anyway). git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1394 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_restore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_restore.c b/program/src/rrd_restore.c index 4a328bdf..53b25be2 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 */ -- 2.30.2