Skip to content

Commit 774a6ec

Browse files
Update Modules/_ctypes/_ctypes.c
Co-authored-by: Petr Viktorin <encukou@gmail.com>
1 parent 5a4c1d6 commit 774a6ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_ctypes/_ctypes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1553,7 +1553,7 @@ WCharArray_set_value(CDataObject *self, PyObject *value, void *Py_UNUSED(ignored
15531553
PyErr_SetString(PyExc_ValueError, "string too long");
15541554
return -1;
15551555
}
1556-
int rc;
1556+
Py_ssize_t rc;
15571557
LOCK_PTR(self);
15581558
rc = PyUnicode_AsWideChar(value, (wchar_t *)self->b_ptr, size);
15591559
UNLOCK_PTR(self);

0 commit comments

Comments
 (0)