diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2018-04-26 23:37:52 +0200 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2018-04-26 23:37:52 +0200 |
commit | 50af3bf618a4a1e693b129779ed8cbe7c88dc430 (patch) | |
tree | a1501d13d45123d95f4f7f916a90792ee97b00c1 /mpq/inp_str.c | |
parent | 252c79afb2e57270a9b1c590ebc5db311a147642 (diff) | |
download | gmp-50af3bf618a4a1e693b129779ed8cbe7c88dc430.tar.gz |
mpq/: Support lazy mpq_t also in the denominator.
Diffstat (limited to 'mpq/inp_str.c')
-rw-r--r-- | mpq/inp_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpq/inp_str.c b/mpq/inp_str.c index e2407eb9b..b1fbbc9e1 100644 --- a/mpq/inp_str.c +++ b/mpq/inp_str.c @@ -43,7 +43,7 @@ mpq_inp_str (mpq_ptr q, FILE *fp, int base) fp = stdin; SIZ(DEN(q)) = 1; - PTR(DEN(q))[0] = 1; + MPZ_NEWALLOC (DEN(q), 1)[0] = 1; nread = mpz_inp_str (mpq_numref(q), fp, base); if (nread == 0) |