[PATCH] mini-gmp: pass correct old_size to custom reallocate function

Marco Bodrato bodrato at mail.dm.unipi.it
Mon Mar 9 16:06:55 UTC 2020


Ciao,

Il Lun, 9 Marzo 2020 2:08 pm, Niels Möller ha scritto:
> Marco Bodrato <bodrato at mail.dm.unipi.it> writes:
>
>> -    gmp_free_func (rden, 0);
>> +    gmp_free_func (rden, lden * sizeof (char));
>
> sizeof (char) == 1 by definition, so no need to multiply with it.

Of course you are right!

Ĝis,
m



More information about the gmp-devel mailing list