Skip to content

Commit 07528a6

Browse files
committed
fix type to avoid size_t -> python -> size_t conversion
1 parent 981c124 commit 07528a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cypari2/convert.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ cdef GEN PyLong_AS_GEN(py_long x) noexcept:
496496
w += <ulong>(D[dgt+5]) << (5*PyLong_SHIFT - bit)
497497

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

0 commit comments

Comments
 (0)