From fa43b1e8822e55d0e8d27c27c28d150d2e65b8c3 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 25 Oct 1995 19:54:38 +0000 Subject: [PATCH] [!HAVE_FMOD] (fmod): Make consistent with ANSI definition. Don't use drem; it's not the same function. --- src/data.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/data.c b/src/data.c index 826fec57a87..53e40c11cef 100644 --- a/src/data.c +++ b/src/data.c @@ -2142,11 +2142,9 @@ double fmod (f1, f2) double f1, f2; { -#ifdef HAVE_DREM /* Some systems use this non-standard name. */ - return (drem (f1, f2)); -#else /* Other systems don't seem to have it at all. */ + if (f2 < 0.0) + f2 = -f2; return (f1 - f2 * floor (f1/f2)); -#endif } #endif /* ! HAVE_FMOD */ -- 2.39.2