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 aa5aced commit ff0fc23Copy full SHA for ff0fc23
src/flint/types/fmpz.pyx
@@ -20,18 +20,12 @@ cdef fmpz_get_intlong(fmpz_t x):
20
Convert fmpz_t to a Python int or long.
21
"""
22
cdef char * s
23
- print("fmpz_get_intlong: 0")
24
if COEFF_IS_MPZ(x[0]):
25
- print("fmpz_get_intlong: 1", flush=True)
26
s = fmpz_get_str(NULL, 16, x)
27
- print("fmpz_get_intlong: 2", flush=True)
28
v = int(bytes(s).decode('ascii'), 16)
29
- print("fmpz_get_intlong: 3", flush=True)
30
flint_free(s)
31
- print("fmpz_get_intlong: 4", flush=True)
32
return v
33
else:
34
- print("fmpz_get_intlong: small", flush=True)
35
return <slong>x[0]
36
37
cdef int fmpz_set_any_ref(fmpz_t x, obj):
0 commit comments