aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
authorRichard M. Stallman1995-03-30 23:34:59 +0000
committerRichard M. Stallman1995-03-30 23:34:59 +0000
commit04f7ec6929c3e4db2b5515e1e133a716f1bf8cb4 (patch)
treeb51ef0cde3969260c48693190d2bb322e2e8633e /src/data.c
parent75c7042521f07ccc6a52da68ed0463cdc5e47b17 (diff)
downloademacs-04f7ec6929c3e4db2b5515e1e133a716f1bf8cb4.tar.gz
emacs-04f7ec6929c3e4db2b5515e1e133a716f1bf8cb4.zip
(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.")
1951 i1 %= i2; 1951 i1 %= i2;
1952 1952
1953 /* If the "remainder" comes out with the wrong sign, fix it. */ 1953 /* If the "remainder" comes out with the wrong sign, fix it. */
1954 if ((i1 < 0) != (i2 < 0)) 1954 if (i2 < 0 ? i1 > 0 : i1 < 0)
1955 i1 += i2; 1955 i1 += i2;
1956 1956
1957 XSETINT (val, i1); 1957 XSETINT (val, i1);