aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c6
1 files 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
2142fmod (f1, f2) 2142fmod (f1, f2)
2143 double f1, f2; 2143 double f1, f2;
2144{ 2144{
2145#ifdef HAVE_DREM /* Some systems use this non-standard name. */ 2145 if (f2 < 0.0)
2146 return (drem (f1, f2)); 2146 f2 = -f2;
2147#else /* Other systems don't seem to have it at all. */
2148 return (f1 - f2 * floor (f1/f2)); 2147 return (f1 - f2 * floor (f1/f2));
2149#endif
2150} 2148}
2151#endif /* ! HAVE_FMOD */ 2149#endif /* ! HAVE_FMOD */
2152 2150