diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2015-11-03 05:21:12 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2015-11-03 05:21:12 +0100 |
commit | 8f47bb36f2789c7df23d7893de6aa8d897e7e18a (patch) | |
tree | 09f1e3686350e216aeef631e7c66b20d4d15d7d4 /mpz/ior.c | |
parent | a33a77d373a28c31dc6de73c6652e2f069ac2f3a (diff) | |
download | gmp-8f47bb36f2789c7df23d7893de6aa8d897e7e18a.tar.gz |
Use the return value of _mpz_realloc.
Diffstat (limited to 'mpz/ior.c')
-rw-r--r-- | mpz/ior.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1,7 +1,7 @@ /* mpz_ior -- Logical inclusive or. -Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001, 2005, 2012, 2013 Free -Software Foundation, Inc. +Copyright 1991, 1993, 1994, 1996, 1997, 2000, 2001, 2005, 2012, 2013, +2015 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -178,10 +178,9 @@ mpz_ior (mpz_ptr res, mpz_srcptr op1, mpz_srcptr op2) if (ALLOC(res) < res_alloc) { - _mpz_realloc (res, res_alloc); + res_ptr = (mp_ptr) _mpz_realloc (res, res_alloc); op1_ptr = PTR(op1); /* op2_ptr points to temporary space. */ - res_ptr = PTR(res); } if (op1_size >= op2_size) |