Skip to content

Commit

Permalink
fix type to avoid size_t -> python -> size_t conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
tornaria committed Mar 11, 2024
1 parent 981c124 commit 07528a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypari2/convert.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ cdef GEN PyLong_AS_GEN(py_long x) noexcept:
w += <ulong>(D[dgt+5]) << (5*PyLong_SHIFT - bit)

# Effective size in words plus 2 special codewords
cdef pariwords = sizewords+2 if w else sizewords+1
cdef size_t pariwords = sizewords+2 if w else sizewords+1
cdef GEN g = cgeti(pariwords)
g[1] = sgn + evallgefint(pariwords)

Expand Down

0 comments on commit 07528a6

Please sign in to comment.