Skip to content

Commit 92a60d6

Browse files
committed
Fix another bug in fq_default_ctx initializer
1 parent fe9ed23 commit 92a60d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fq_default/ctx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void fq_default_ctx_init_type(fq_default_ctx_t ctx,
2323
}
2424
else if (type == FQ_DEFAULT_FQ_NMOD || (type == 0 && d > 1 && fmpz_abs_fits_ui(p)))
2525
{
26-
gr_ctx_init_fq_nmod(FQ_DEFAULT_GR_CTX(ctx), *p, d, var);
26+
gr_ctx_init_fq_nmod(FQ_DEFAULT_GR_CTX(ctx), fmpz_get_ui(p), d, var);
2727
}
2828
else if (type == FQ_DEFAULT_NMOD || (type == 0 && d == 1 && fmpz_abs_fits_ui(p)))
2929
{

0 commit comments

Comments
 (0)