diff options
author | Richard M. Stallman <rms@gnu.org> | 1995-03-30 23:34:59 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1995-03-30 23:34:59 +0000 |
commit | 093eb1f20b83d2d249fb3d1a8124a2e7ed389045 (patch) | |
tree | 982d3c094bc0f4ba2dfce5d04423054ccc509fdd /src/data.c | |
parent | 2f76d7e37541f99a12316707eb50c661be9db00c (diff) | |
download | emacs-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.c | 2 |
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); |