Skip to content

Commit

Permalink
Merge pull request #1724 from thofma/th/bugyouaredrunkgohome
Browse files Browse the repository at this point in the history
fix: initialization of fq_default_ctx
  • Loading branch information
albinahlback authored Jan 18, 2024
2 parents 493a6c6 + 334a937 commit 1b566ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/fq_default/ctx_init_modulus.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ void fq_default_ctx_init_modulus_type(fq_default_ctx_t ctx,
{
ctx->type = FQ_DEFAULT_FMPZ_MOD;
fmpz_mod_ctx_init(ctx->ctx.fmpz_mod.mod, p);
fmpz_init(ctx->ctx.fmpz_mod.a);
fmpz_mod_divides(ctx->ctx.fmpz_mod.a, modulus->coeffs + 0,
modulus->coeffs + 1, ctx->ctx.fmpz_mod.mod);
fmpz_mod_neg(ctx->ctx.fmpz_mod.a, ctx->ctx.fmpz_mod.a,
Expand Down

0 comments on commit 1b566ba

Please sign in to comment.