fixed DINF for win32
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 2 Jul 2002 10:35:23 +0000 (10:35 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Tue, 2 Jul 2002 10:35:23 +0000 (10:35 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@154 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_nan_inf.c

index 473f51b..9fc3b61 100644 (file)
@@ -3,7 +3,7 @@
 #if defined(WIN32)
 
 double set_to_DNAN(void) { return (double)fmod(0.0,0.0); }
-double set_to_DINF(void) { return (double)log(0.0); }
+double set_to_DINF(void) { return (double)fabs((double)log(0.0)); }
 
 #else