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/inp_raw.c | |
parent | 27ac5bf5c349d49c7103674b4a366afb6ad51cca (diff) | |
download | gmp-eb3632bb2177f6ea7d2f41c9722458c10159c013.tar.gz |
Use MPZ_REALLOC return value when possible.
Diffstat (limited to 'mpz/inp_raw.c')
-rw-r--r-- | mpz/inp_raw.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mpz/inp_raw.c b/mpz/inp_raw.c index d14cfd160..0da0c61c0 100644 --- a/mpz/inp_raw.c +++ b/mpz/inp_raw.c @@ -1,6 +1,6 @@ /* mpz_inp_raw -- read an mpz_t in raw format. -Copyright 2001, 2002, 2005 Free Software Foundation, Inc. +Copyright 2001, 2002, 2005, 2012 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -86,8 +86,7 @@ mpz_inp_raw (mpz_ptr x, FILE *fp) if (abs_xsize != 0) { - MPZ_REALLOC (x, abs_xsize); - xp = PTR(x); + xp = MPZ_REALLOC (x, abs_xsize); /* Get limb boundaries right in the read, for the benefit of the non-nails case. */ |