[Gmp-commit] /var/hg/gmp: mpz/gcdext.c: Added the comment Niels asked one mon...
mercurial at gmplib.org
mercurial at gmplib.org
Mon Feb 27 16:46:56 UTC 2017
details: /var/hg/gmp/rev/179c013730c3
changeset: 17314:179c013730c3
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Sun Feb 26 17:13:38 2017 +0100
description:
mpz/gcdext.c: Added the comment Niels asked one month ago...
diffstat:
mpz/gcdext.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (12 lines):
diff -r c3927196a330 -r 179c013730c3 mpz/gcdext.c
--- a/mpz/gcdext.c Sun Feb 26 08:51:08 2017 +0100
+++ b/mpz/gcdext.c Sun Feb 26 17:13:38 2017 +0100
@@ -66,6 +66,8 @@
if (g != NULL)
{
+ /* If g == a, then ALLOC(g) == ALLOC(a) >= asize, i.e.
+ the next MPZ_NEWALLOC returns the old PTR(a) .*/
gp = MPZ_NEWALLOC (g, asize);
MPN_COPY (gp, PTR (a), asize);
SIZ (g) = asize;
More information about the gmp-commit
mailing list