Skip to content

Commit

Permalink
Fix another bug in fq_default_ctx initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
albinahlback committed Apr 25, 2024
1 parent fe9ed23 commit 92a60d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fq_default/ctx.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void fq_default_ctx_init_type(fq_default_ctx_t ctx,
}
else if (type == FQ_DEFAULT_FQ_NMOD || (type == 0 && d > 1 && fmpz_abs_fits_ui(p)))
{
gr_ctx_init_fq_nmod(FQ_DEFAULT_GR_CTX(ctx), *p, d, var);
gr_ctx_init_fq_nmod(FQ_DEFAULT_GR_CTX(ctx), fmpz_get_ui(p), d, var);
}
else if (type == FQ_DEFAULT_NMOD || (type == 0 && d == 1 && fmpz_abs_fits_ui(p)))
{
Expand Down

0 comments on commit 92a60d6

Please sign in to comment.