[Gmp-commit] /var/hg/gmp: mpz/xor.c: Cast return value of _mpz_realloc.
mercurial at gmplib.org
mercurial at gmplib.org
Wed Nov 4 16:08:48 UTC 2015
details: /var/hg/gmp/rev/7914481e1f6a
changeset: 16935:7914481e1f6a
user: Marco Bodrato <bodrato at mail.dm.unipi.it>
date: Wed Nov 04 17:08:43 2015 +0100
description:
mpz/xor.c: Cast return value of _mpz_realloc.
diffstat:
mpz/xor.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 19c740500b7c -r 7914481e1f6a mpz/xor.c
--- a/mpz/xor.c Tue Nov 03 05:26:59 2015 +0100
+++ b/mpz/xor.c Wed Nov 04 17:08:43 2015 +0100
@@ -57,7 +57,7 @@
{
if (ALLOC(res) < op1_size)
{
- res_ptr =_mpz_realloc (res, op1_size);
+ res_ptr = (mp_ptr) _mpz_realloc (res, op1_size);
/* No overlapping possible: op1_ptr = PTR(op1); */
op2_ptr = PTR(op2);
}
@@ -73,7 +73,7 @@
{
if (ALLOC(res) < op2_size)
{
- res_ptr =_mpz_realloc (res, op2_size);
+ res_ptr = (mp_ptr) _mpz_realloc (res, op2_size);
op1_ptr = PTR(op1);
/* No overlapping possible: op2_ptr = PTR(op2); */
}
More information about the gmp-commit
mailing list