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 adcf70b commit d48b33fCopy full SHA for d48b33f
src/flint/types/fmpz.pyx
@@ -20,11 +20,16 @@ cdef fmpz_get_intlong(fmpz_t x):
20
"""
21
cdef char * s
22
if COEFF_IS_MPZ(x[0]):
23
+ print("fmpz_get_intlong: 1")
24
s = fmpz_get_str(NULL, 16, x)
- v = int(str_from_chars(s), 16)
25
+ print("fmpz_get_intlong: 2")
26
+ v = int(bytes(s).decode('ascii'), 16)
27
+ print("fmpz_get_intlong: 3")
28
libc.stdlib.free(s)
29
+ print("fmpz_get_intlong: 4")
30
return v
31
else:
32
+ print("fmpz_get_intlong: small")
33
return <slong>x[0]
34
35
cdef int fmpz_set_any_ref(fmpz_t x, obj):
0 commit comments