]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
lint(c): avoid types warning building on Windows
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Thu, 8 Dec 2022 16:20:04 +0000 (16:20 +0000)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 10 Dec 2022 13:08:14 +0000 (13:08 +0000)
psycopg_c/psycopg_c/_psycopg/transform.pyx

index 3525bc9bee4b3500bb57e0b05ccad48f33a97c3d..fc697253fd45773b813ba720b09d7a7dc7cfdc52 100644 (file)
@@ -172,7 +172,7 @@ cdef class Transformer:
         self._row_loaders = loaders
 
     def set_dumper_types(self, types: Sequence[int], format: Format) -> None:
-        cdef int ntypes = len(types)
+        cdef Py_ssize_t ntypes = len(types)
         dumpers = PyList_New(ntypes)
         cdef int i
         for i in range(ntypes):