vsaprintf: Use proper size for mp_limb_t to please msys2-mingw32 CI

This commit is contained in:
Marco Trevisan (Treviño) 2024-05-11 01:23:34 +02:00
parent 86dd02f487
commit cbc5808545

View File

@ -379,7 +379,7 @@ multiply (mpn_t src1, mpn_t src2, mpn_t *dest)
{ {
/* src1 or src2 is zero. */ /* src1 or src2 is zero. */
dest->nlimbs = 0; dest->nlimbs = 0;
dest->limbs = (mp_limb_t *) malloc (1); dest->limbs = (mp_limb_t *) malloc (sizeof (mp_limb_t));
} }
else else
{ {