summaryrefslogtreecommitdiff
path: root/src/data.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-03-30 23:34:59 +0000
committerRichard M. Stallman <rms@gnu.org>1995-03-30 23:34:59 +0000
commit093eb1f20b83d2d249fb3d1a8124a2e7ed389045 (patch)
tree982d3c094bc0f4ba2dfce5d04423054ccc509fdd /src/data.c
parent2f76d7e37541f99a12316707eb50c661be9db00c (diff)
downloademacs-093eb1f20b83d2d249fb3d1a8124a2e7ed389045.tar.gz
(Fmod): Fix the final adjustment, when i2 < 0 and i1 == 0.
Diffstat (limited to 'src/data.c')
-rw-r--r--src/data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/data.c b/src/data.c
index be10e71f3b5..41f74cb98e1 100644
--- a/src/data.c
+++ b/src/data.c
@@ -1951,7 +1951,7 @@ Both X and Y must be numbers or markers.")
i1 %= i2;
/* If the "remainder" comes out with the wrong sign, fix it. */
- if ((i1 < 0) != (i2 < 0))
+ if (i2 < 0 ? i1 > 0 : i1 < 0)
i1 += i2;
XSETINT (val, i1);