From 5ecd9730cf60474302ea21bde3839b7b394e660e Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 2 Jul 2002 10:35:23 +0000 Subject: [PATCH] fixed DINF for win32 git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@154 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_nan_inf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/program/src/rrd_nan_inf.c b/program/src/rrd_nan_inf.c index 473f51b0..9fc3b616 100644 --- a/program/src/rrd_nan_inf.c +++ b/program/src/rrd_nan_inf.c @@ -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 -- 2.30.2