Skip to content

Commit

Permalink
Hack fmpz_mod_mat_clear
Browse files Browse the repository at this point in the history
  • Loading branch information
albinahlback committed Apr 24, 2024
1 parent 7fa9799 commit 81db5d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flint/FlintTypes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5464,7 +5464,7 @@ end

function _fmpz_mod_mat_clear_fn(mat::ZZModMatrix)
ccall((:fmpz_mod_mat_clear, libflint), Nothing,
(Ref{ZZModMatrix}, Ref{fmpz_mod_ctx_struct}), mat, mat.base_ring.ninv)
(Ref{ZZModMatrix}, Ref{Nothing}), mat, C_NULL) # Hack
end

###############################################################################
Expand Down Expand Up @@ -5602,7 +5602,7 @@ end

function _gfp_fmpz_mat_clear_fn(mat::FpMatrix)
ccall((:fmpz_mod_mat_clear, libflint), Nothing,
(Ref{FpMatrix}, Ref{fmpz_mod_ctx_struct}), mat, mat.base_ring.ninv)
(Ref{FpMatrix}, Ref{Nothing}), mat, C_NULL) # Hack
end

################################################################################
Expand Down

0 comments on commit 81db5d8

Please sign in to comment.