Skip to content

Commit

Permalink
Fix build with flint 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
antonio-rojas committed Feb 26, 2024
1 parent 4cf733b commit 61db076
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions factory/cfModGcd.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1806,7 +1806,11 @@ gaussianElimFq (CFMatrix& M, CFArray& L, const Variable& alpha)
fq_nmod_mat_t FLINTN;
convertFacCFMatrix2Fq_nmod_mat_t (FLINTN, ctx, *N);
// rank
#if __FLINT_RELEASE >= 30100
long rk= fq_nmod_mat_rref (FLINTN,FLINTN,ctx);
#else
long rk= fq_nmod_mat_rref (FLINTN,ctx);
#endif
// clean up
fq_nmod_mat_clear (FLINTN,ctx);
fq_nmod_ctx_clear(ctx);
Expand Down Expand Up @@ -1912,7 +1916,11 @@ solveSystemFq (const CFMatrix& M, const CFArray& L, const Variable& alpha)
fq_nmod_mat_t FLINTN;
convertFacCFMatrix2Fq_nmod_mat_t (FLINTN, ctx, *N);
// rank
#if __FLINT_RELEASE >= 30100
long rk= fq_nmod_mat_rref (FLINTN,FLINTN,ctx);
#else
long rk= fq_nmod_mat_rref (FLINTN,ctx);
#endif
#elif defined(HAVE_NTL)
int p= getCharacteristic ();
if (fac_NTL_char != p)
Expand Down

0 comments on commit 61db076

Please sign in to comment.