"igor pesando - Dept of Physics, University of Torino"
<ipesa...@to.infn.it> writes:

  thanks for the quick answer on the first case.
  But the issue is also present if I use malloc in C.

People have explained what you did wrong, which was several things.

Something you might consider: It would have been pretty surprising if
mpz_init was fundamentally broken, a function essentially every GMP
application program have beeing using for 30 years, don't you think?
Looking closer in such situations, considering the possibility of ones
own mistakes, might be a better approach.

-- 
Torbjörn
Please encrypt, key id 0xC8601622
_______________________________________________
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs

Reply via email to