From: Daniele Varrazzo Date: Thu, 8 Dec 2022 16:20:04 +0000 (+0000) Subject: lint(c): avoid types warning building on Windows X-Git-Tag: 3.1.5~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=021430b49fd946dade499151ba755bb859a748c8;p=thirdparty%2Fpsycopg.git lint(c): avoid types warning building on Windows --- diff --git a/psycopg_c/psycopg_c/_psycopg/transform.pyx b/psycopg_c/psycopg_c/_psycopg/transform.pyx index 3525bc9be..fc697253f 100644 --- a/psycopg_c/psycopg_c/_psycopg/transform.pyx +++ b/psycopg_c/psycopg_c/_psycopg/transform.pyx @@ -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):