We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1021236 commit b1afaf3Copy full SHA for b1afaf3
src/flint/types/fmpz_mod.pyx
@@ -82,7 +82,6 @@ cdef class fmpz_mod_ctx:
82
83
def __init__(self, mod):
84
# Ensure modulus is fmpz type
85
- return
86
if not typecheck(mod, fmpz):
87
mod = any_as_fmpz(mod)
88
if mod is NotImplemented:
@@ -94,6 +93,7 @@ cdef class fmpz_mod_ctx:
94
93
if mod < 1:
95
raise ValueError("Modulus is expected to be positive")
96
+ return
97
# Set the modulus
98
fmpz_mod_ctx_set_modulus(self.val, (<fmpz>mod).val)
99
0 commit comments