diff options
Diffstat (limited to 'rand')
-rw-r--r-- | rand/randlc2x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rand/randlc2x.c b/rand/randlc2x.c index 195f75932..dc5a9a526 100644 --- a/rand/randlc2x.c +++ b/rand/randlc2x.c @@ -319,7 +319,7 @@ gmp_randinit_lc_2exp (gmp_randstate_t rstate, if (SIZ (p->_mp_a) == 0) { SIZ (p->_mp_a) = 1; - PTR (p->_mp_a)[0] = CNST_LIMB (0); + MPZ_NEWALLOC (p->_mp_a, 1)[0] = CNST_LIMB (0); } MPN_SET_UI (p->_cp, p->_cn, c); |