summaryrefslogtreecommitdiff
path: root/mpz/inp_str.c
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2016-12-28 18:39:40 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2016-12-28 18:39:40 +0100
commitbc7028c9cd73b6dc74f55c0972c2588717a8dd92 (patch)
treeeb3cf8b36ec47507b793c879985dc5139241eb98 /mpz/inp_str.c
parent1e88b60e701eddf008f3bb4d8212761d79a90082 (diff)
downloadgmp-bc7028c9cd73b6dc74f55c0972c2588717a8dd92.tar.gz
Use MPZ_NEWALLOC and other macros result
Diffstat (limited to 'mpz/inp_str.c')
-rw-r--r--mpz/inp_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/inp_str.c b/mpz/inp_str.c
index ec3143bc8..df508c3f5 100644
--- a/mpz/inp_str.c
+++ b/mpz/inp_str.c
@@ -162,7 +162,7 @@ mpz_inp_str_nowhite (mpz_ptr x, FILE *stream, int base, int c, size_t nread)
else
{
LIMBS_PER_DIGIT_IN_BASE (xsize, str_size, base);
- MPZ_REALLOC (x, xsize);
+ MPZ_NEWALLOC (x, xsize);
/* Convert the byte array in base BASE to our bignum format. */
xsize = mpn_set_str (PTR (x), (unsigned char *) str, str_size, base);