aboutsummaryrefslogtreecommitdiffstats
path: root/src/data.c
diff options
context:
space:
mode:
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 dfc8a892f5e..cb25fce014a 100644
--- a/src/data.c
+++ b/src/data.c
@@ -3098,7 +3098,7 @@ integer_mod (Lisp_Object x, Lisp_Object y)
3098 { 3098 {
3099 mpz_t const *ym = bignum_integer (&mpz[1], y); 3099 mpz_t const *ym = bignum_integer (&mpz[1], y);
3100 bool neg_y = mpz_sgn (*ym) < 0; 3100 bool neg_y = mpz_sgn (*ym) < 0;
3101 mpz_mod (mpz[0], *bignum_integer (&mpz[0], x), *ym); 3101 mpz_tdiv_r (mpz[0], *bignum_integer (&mpz[0], x), *ym);
3102 3102
3103 /* Fix the sign if needed. */ 3103 /* Fix the sign if needed. */
3104 int sgn_r = mpz_sgn (mpz[0]); 3104 int sgn_r = mpz_sgn (mpz[0]);