Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fix string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
videlec committed Apr 25, 2019
1 parent 172096d commit 4d06dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sage/interfaces/primecount.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ cpdef prime_pi_128(n):
sage: nth_prime_128(2**65) # not tested
?
"""
cdef cppstring s = bytes(n)
cdef cppstring s = str(n).encode('ascii')
cdef bytes ans
sig_on()
ans = primecount.pi(s)
Expand Down

0 comments on commit 4d06dee

Please sign in to comment.