Skip to content

Commit b1afaf3

Browse files
committed
Allow more fmpz_mod_ctx.__init__
1 parent 1021236 commit b1afaf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flint/types/fmpz_mod.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ cdef class fmpz_mod_ctx:
8282

8383
def __init__(self, mod):
8484
# Ensure modulus is fmpz type
85-
return
8685
if not typecheck(mod, fmpz):
8786
mod = any_as_fmpz(mod)
8887
if mod is NotImplemented:
@@ -94,6 +93,7 @@ cdef class fmpz_mod_ctx:
9493
if mod < 1:
9594
raise ValueError("Modulus is expected to be positive")
9695

96+
return
9797
# Set the modulus
9898
fmpz_mod_ctx_set_modulus(self.val, (<fmpz>mod).val)
9999

0 commit comments

Comments
 (0)