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/aorsmul.c | |
parent | 27ac5bf5c349d49c7103674b4a366afb6ad51cca (diff) | |
download | gmp-eb3632bb2177f6ea7d2f41c9722458c10159c013.tar.gz |
Use MPZ_REALLOC return value when possible.
Diffstat (limited to 'mpz/aorsmul.c')
-rw-r--r-- | mpz/aorsmul.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mpz/aorsmul.c b/mpz/aorsmul.c index e58dc45a4..d81450543 100644 --- a/mpz/aorsmul.c +++ b/mpz/aorsmul.c @@ -1,6 +1,6 @@ /* mpz_addmul, mpz_submul -- add or subtract multiple. -Copyright 2001, 2004, 2005 Free Software Foundation, Inc. +Copyright 2001, 2004, 2005, 2012 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -76,8 +76,7 @@ mpz_aorsmul (mpz_ptr w, mpz_srcptr x, mpz_srcptr y, mp_size_t sub) wsize = ABS(wsize_signed); tsize = xsize + ysize; - MPZ_REALLOC (w, MAX (wsize, tsize) + 1); - wp = PTR(w); + wp = MPZ_REALLOC (w, MAX (wsize, tsize) + 1); if (wsize_signed == 0) { |