From 92a60d6fd5a74d17120aeaa4bdb4845970e8d9c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albin=20Ahlb=C3=A4ck?= Date: Thu, 25 Apr 2024 21:22:50 +0200 Subject: [PATCH] Fix another bug in fq_default_ctx initializer --- src/fq_default/ctx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fq_default/ctx.c b/src/fq_default/ctx.c index 58659b2fa7..b0cf11b7b6 100644 --- a/src/fq_default/ctx.c +++ b/src/fq_default/ctx.c @@ -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))) {