From 0b16e4e1f1b9e6de16aa613b1b363d76b1023766 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 8 Apr 2022 17:02:21 -0700 Subject: Update from Gnulib by running admin/merge-gnulib --- lib/mini-gmp.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/mini-gmp.c') 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); } -- cgit v1.2.3