summaryrefslogtreecommitdiff
path: root/mpz/tdiv_r_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/tdiv_r_ui.c
parent27ac5bf5c349d49c7103674b4a366afb6ad51cca (diff)
downloadgmp-eb3632bb2177f6ea7d2f41c9722458c10159c013.tar.gz
Use MPZ_REALLOC return value when possible.
Diffstat (limited to 'mpz/tdiv_r_ui.c')
-rw-r--r--mpz/tdiv_r_ui.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/mpz/tdiv_r_ui.c b/mpz/tdiv_r_ui.c
index efbf44b91..a206811bf 100644
--- a/mpz/tdiv_r_ui.c
+++ b/mpz/tdiv_r_ui.c
@@ -1,8 +1,8 @@
/* mpz_tdiv_r_ui(rem, dividend, divisor_limb)
-- Set REM to DIVDEND mod DIVISOR_LIMB.
-Copyright 1991, 1993, 1994, 1996, 1998, 2001, 2002, 2004, 2005 Free Software
-Foundation, Inc.
+Copyright 1991, 1993, 1994, 1996, 1998, 2001, 2002, 2004, 2005, 2012 Free
+Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -57,8 +57,7 @@ mpz_tdiv_r_ui (mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor)
return rl;
}
- MPZ_REALLOC (rem, 2);
- rp = PTR(rem);
+ rp = MPZ_REALLOC (rem, 2);
TMP_MARK;
dp[0] = divisor & GMP_NUMB_MASK;