Skip to content

Commit 5df0f30

Browse files
committed
pythongh-116738: Fix incorrect type coersion on windows
1 parent 8a4ad8f commit 5df0f30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/arraymodule.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1459,7 +1459,7 @@ array_item(arrayobject *a, Py_ssize_t i)
14591459

14601460
void array_safe_memcpy(char* to, Py_ssize_t to_offset, char* from, Py_ssize_t from_offset, Py_ssize_t len)
14611461
{
1462-
int safe_len = len;
1462+
Py_ssize_t safe_len = len;
14631463
#ifdef Py_GIL_DISABLED
14641464
Py_ssize_t from_capacity = array_capacity(from);
14651465
Py_ssize_t to_capacity = array_capacity(to);

0 commit comments

Comments
 (0)