diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2012-05-26 15:57:43 +0200 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2012-05-26 15:57:43 +0200 |
commit | eb3632bb2177f6ea7d2f41c9722458c10159c013 (patch) | |
tree | 624a47bf95ce22460938a693f797937f5d6003cb /mpz/aors.h | |
parent | 27ac5bf5c349d49c7103674b4a366afb6ad51cca (diff) | |
download | gmp-eb3632bb2177f6ea7d2f41c9722458c10159c013.tar.gz |
Use MPZ_REALLOC return value when possible.
Diffstat (limited to 'mpz/aors.h')
-rw-r--r-- | mpz/aors.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mpz/aors.h b/mpz/aors.h index b52030361..79ac5fcd5 100644 --- a/mpz/aors.h +++ b/mpz/aors.h @@ -1,6 +1,6 @@ /* mpz_add, mpz_sub -- add or subtract integers. -Copyright 1991, 1993, 1994, 1996, 2000, 2001, 2011 Free Software +Copyright 1991, 1993, 1994, 1996, 2000, 2001, 2011, 2012 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -62,12 +62,11 @@ FUNCTION (mpz_ptr w, mpz_srcptr u, mpz_srcptr v) /* If not space for w (and possible carry), increase space. */ wsize = abs_usize + 1; - MPZ_REALLOC (w, wsize); + wp = MPZ_REALLOC (w, wsize); /* These must be after realloc (u or v may be the same as w). */ up = PTR(u); vp = PTR(v); - wp = PTR(w); if ((usize ^ vsize) < 0) { |