Skip to content

Commit 2f6c941

Browse files
committed
Don't use members of fmpz_mod_mat_t
1 parent 3263d9d commit 2f6c941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flint/types/fmpz_mod_mat.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ cdef class fmpz_mod_mat(flint_mat):
244244
"""Return the modulus."""
245245
cdef fmpz mod
246246
mod = fmpz.__new__(fmpz)
247-
fmpz_init_set(mod.val, self.val.mod)
247+
fmpz_init_set(mod.val, self.ctx.val.n)
248248
return mod
249249

250250
cdef fmpz_mod _getitem(self, slong i, slong j):

0 commit comments

Comments
 (0)