summaryrefslogtreecommitdiff
path: root/mpz/aors_ui.h
diff options
context:
space:
mode:
authorMarco Bodrato <bodrato@mail.dm.unipi.it>2015-11-09 22:30:52 +0100
committerMarco Bodrato <bodrato@mail.dm.unipi.it>2015-11-09 22:30:52 +0100
commit7acd63c08b3b969696681ee8125ea63e543998c8 (patch)
treefccdc23ceb50b4647ac4dd5848c9170972c3030d /mpz/aors_ui.h
parente97517c73c6a962a9d2cd519adcc639087cd1a75 (diff)
downloadgmp-7acd63c08b3b969696681ee8125ea63e543998c8.tar.gz
mpz: Lazy allocation.
Diffstat (limited to 'mpz/aors_ui.h')
-rw-r--r--mpz/aors_ui.h2
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;
}