]> Savannah Git Hosting - gnulib.git/commitdiff
autoupdate
authorKarl Berry <karl@freefriends.org>
Sun, 20 Mar 2022 15:39:33 +0000 (08:39 -0700)
committerKarl Berry <karl@freefriends.org>
Sun, 20 Mar 2022 15:39:33 +0000 (08:39 -0700)
lib/mini-gmp.c

index e7a320a6420039bd93b3398b92a8f8a051c5c1ee..2b1ddee079b785e15851de59366dd82a4877b02f 100644 (file)
@@ -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);
 }
 
 \f