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/aors_ui.h | |
parent | e97517c73c6a962a9d2cd519adcc639087cd1a75 (diff) | |
download | gmp-7acd63c08b3b969696681ee8125ea63e543998c8.tar.gz |
mpz: Lazy allocation.
Diffstat (limited to 'mpz/aors_ui.h')
-rw-r--r-- | mpz/aors_ui.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpz/aors_ui.h b/mpz/aors_ui.h index 2e3c481ab..eaf02c8e9 100644 --- a/mpz/aors_ui.h +++ b/mpz/aors_ui.h @@ -80,7 +80,7 @@ FUNCTION (mpz_ptr w, mpz_srcptr u, unsigned long int vval) usize = SIZ (u); if (usize == 0) { - PTR (w)[0] = vval; + MPZ_NEWALLOC (w, 1)[0] = vval; SIZ (w) = VARIATION_NEG (vval != 0); return; } |