summaryrefslogtreecommitdiff
path: root/mpz/fdiv_q_ui.c
diff options
context:
space:
mode:
authorTorbjorn Granlund <tege@gmplib.org>2012-05-26 15:57:43 +0200
committerTorbjorn Granlund <tege@gmplib.org>2012-05-26 15:57:43 +0200
commiteb3632bb2177f6ea7d2f41c9722458c10159c013 (patch)
tree624a47bf95ce22460938a693f797937f5d6003cb /mpz/fdiv_q_ui.c
parent27ac5bf5c349d49c7103674b4a366afb6ad51cca (diff)
downloadgmp-eb3632bb2177f6ea7d2f41c9722458c10159c013.tar.gz
Use MPZ_REALLOC return value when possible.
Diffstat (limited to 'mpz/fdiv_q_ui.c')
-rw-r--r--mpz/fdiv_q_ui.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mpz/fdiv_q_ui.c b/mpz/fdiv_q_ui.c
index d882882be..41fa8ab68 100644
--- a/mpz/fdiv_q_ui.c
+++ b/mpz/fdiv_q_ui.c
@@ -1,8 +1,8 @@
/* mpz_fdiv_q_ui -- Division rounding the quotient towards -infinity.
The remainder gets the same sign as the denominator.
-Copyright 1994, 1995, 1996, 1999, 2001, 2002, 2004 Free Software Foundation,
-Inc.
+Copyright 1994, 1995, 1996, 1999, 2001, 2002, 2004, 2012 Free Software
+Foundation, Inc.
This file is part of the GNU MP Library.
@@ -40,8 +40,7 @@ mpz_fdiv_q_ui (mpz_ptr quot, mpz_srcptr dividend, unsigned long int divisor)
}
nn = ABS(ns);
- MPZ_REALLOC (quot, nn);
- qp = PTR(quot);
+ qp = MPZ_REALLOC (quot, nn);
np = PTR(dividend);
#if BITS_PER_ULONG > GMP_NUMB_BITS /* avoid warnings about shift amount */