[Gmp-commit] /var/hg/gmp: doc/gmp.texi: typos.

mercurial at gmplib.org mercurial at gmplib.org
Thu Feb 6 07:14:51 UTC 2014


details:   /var/hg/gmp/rev/bd37f6313205
changeset: 16278:bd37f6313205
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Thu Feb 06 08:14:38 2014 +0100
description:
doc/gmp.texi: typos.

diffstat:

 doc/gmp.texi |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 2462ec1bc65c -r bd37f6313205 doc/gmp.texi
--- a/doc/gmp.texi	Tue Feb 04 22:38:32 2014 +0100
+++ b/doc/gmp.texi	Thu Feb 06 08:14:38 2014 +0100
@@ -4182,7 +4182,7 @@
   mp_limb_t *xp;
 
   n = mpz_size (x);
-  xp = mpz_limbs_modify(x, 2*nn);
+  xp = mpz_limbs_modify(x, 2*n);
   for (i = 0; i < n; i++)
     xp[n+i] = xp[n-1-i];
   mpz_limbs_finish (x, mpz_sgn (x) < 0 ? - 2*n : 2*n);
@@ -4193,7 +4193,7 @@
 Special initialization of @var{x}, using the given limb array and size.
 @var{x} should be treated as read-only: it can be passed safely as input to
 any mpz function, but not as an output. The size of the array is
- at math{@GMPabs{@var{xs}}}, and the sign of @var{x} is the sign of @var{s}. For
+ at math{@GMPabs{@var{xs}}}, and the sign of @var{x} is the sign of @var{xs}. For
 convenience, the function returns @var{x}, but cast to a const pointer type.
 @end deftypefun
 


More information about the gmp-commit mailing list