[Gmp-commit] /var/hg/gmp: Fixed typo in previous change to mini-gmp mpz_gcdex...

mercurial at gmplib.org mercurial at gmplib.org
Wed Feb 29 17:03:58 CET 2012


details:   /var/hg/gmp/rev/069d423b9008
changeset: 14704:069d423b9008
user:      Niels M?ller <nisse at lysator.liu.se>
date:      Wed Feb 29 17:03:20 2012 +0100
description:
Fixed typo in previous change to mini-gmp mpz_gcdext. Spotted by Marco.

diffstat:

 mini-gmp/mini-gmp.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e095a906683f -r 069d423b9008 mini-gmp/mini-gmp.c
--- a/mini-gmp/mini-gmp.c	Wed Feb 29 16:30:57 2012 +0100
+++ b/mini-gmp/mini-gmp.c	Wed Feb 29 17:03:20 2012 +0100
@@ -2711,7 +2711,7 @@
   if (v->_mp_size == 0)
     {
       /* g = sgn(u) u + 0 v */
-      signed long sign = mpz_sgn (v);
+      signed long sign = mpz_sgn (u);
       mpz_abs (g, u);
       if (s)
 	mpz_set_si (s, sign);


More information about the gmp-commit mailing list