summaryrefslogtreecommitdiff
path: root/lib/mini-gmp.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-04-08 17:02:21 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2022-04-08 17:33:16 -0700
commit0b16e4e1f1b9e6de16aa613b1b363d76b1023766 (patch)
tree74fd7a86a1413b54f624f75254de63abf220fa90 /lib/mini-gmp.c
parent68bc1446855c86b96d5bc22f819e63358ab250ac (diff)
downloademacs-0b16e4e1f1b9e6de16aa613b1b363d76b1023766.tar.gz
emacs-0b16e4e1f1b9e6de16aa613b1b363d76b1023766.tar.bz2
emacs-0b16e4e1f1b9e6de16aa613b1b363d76b1023766.zip
Update from Gnulib by running admin/merge-gnulib
Diffstat (limited to 'lib/mini-gmp.c')
-rw-r--r--lib/mini-gmp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/mini-gmp.c b/lib/mini-gmp.c
index e7a320a6420..2b1ddee079b 100644
--- a/lib/mini-gmp.c
+++ b/lib/mini-gmp.c
@@ -10,7 +10,7 @@ The GNU MP Library is free software; you can redistribute it and/or modify
it under the terms of either:
* the GNU Lesser General Public License as published by the Free
- Software Foundation, either version 3 of the License, or (at your
+ Software Foundation; either version 3 of the License, or (at your
option) any later version.
or
@@ -1937,9 +1937,8 @@ mpz_neg (mpz_t r, const mpz_t u)
void
mpz_swap (mpz_t u, mpz_t v)
{
- MP_SIZE_T_SWAP (u->_mp_size, v->_mp_size);
MP_SIZE_T_SWAP (u->_mp_alloc, v->_mp_alloc);
- MP_PTR_SWAP (u->_mp_d, v->_mp_d);
+ MPN_PTR_SWAP (u->_mp_d, u->_mp_size, v->_mp_d, v->_mp_size);
}