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

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


Ciao,

Il Lun, 9 Marzo 2020 12:30 pm, Niels Möller ha scritto:
> Marco Bodrato <bodrato at mail.dm.unipi.it> writes:
>> For the style, I do not know which one is better:
>> "if(c){v=val}else{v=0};" or "v=0;if(c){v=val};"

> I don't have a very strong opinion on this point, but when it's easy to
> do, I prefer to assign once on each code path.

Agreed.

Ĝis,
m



More information about the gmp-devel mailing list