Ciao,

in my opinion, the issue arises from a function that is directly accessing the internal structure. Using the documented interface heals the bug.
A proposed patch:

*** squfof126.c~        2020-02-18 12:25:12.210812063 +0100
--- squfof126.c 2020-02-18 12:23:50.647283918 +0100
***************
*** 50,57 ****
      mpz_mul_2exp(n, n, 32);
      mpz_add_ui(n, n, (uint32_t)v);
    } else {
!     n->_mp_d[0] = v;
!     n->_mp_size = 1;
    }
  }

--- 50,56 ----
      mpz_mul_2exp(n, n, 32);
      mpz_add_ui(n, n, (uint32_t)v);
    } else {
!     mpz_set_ui(n, v);
    }
  }



Ĝis,
m

--
http://bodrato.it/papers/

Reply via email to