diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2015-11-09 22:30:52 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2015-11-09 22:30:52 +0100 |
commit | 7acd63c08b3b969696681ee8125ea63e543998c8 (patch) | |
tree | fccdc23ceb50b4647ac4dd5848c9170972c3030d /mpz/gcdext.c | |
parent | e97517c73c6a962a9d2cd519adcc639087cd1a75 (diff) | |
download | gmp-7acd63c08b3b969696681ee8125ea63e543998c8.tar.gz |
mpz: Lazy allocation.
Diffstat (limited to 'mpz/gcdext.c')
-rw-r--r-- | mpz/gcdext.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/gcdext.c b/mpz/gcdext.c index 01b1f8379..4863d3bab 100644 --- a/mpz/gcdext.c +++ b/mpz/gcdext.c @@ -72,7 +72,7 @@ mpz_gcdext (mpz_ptr g, mpz_ptr s, mpz_ptr t, mpz_srcptr a, mpz_srcptr b) if (s != NULL) { SIZ (s) = ssize; - PTR (s)[0] = 1; + MPZ_NEWALLOC (s, 1)[0] = 1; } return; } |