Skip to content

Commit 4dbaa53

Browse files
committed
fix typo
1 parent 39796fd commit 4dbaa53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/arraymodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,7 +2124,7 @@ array_array_fromunicode_impl(arrayobject *self, PyObject *ustr)
21242124
if (ustr_length > 1) {
21252125
ustr_length--; /* trim trailing NUL character */
21262126
Py_ssize_t old_size = Py_SIZE(self);
2127-
ssize_t new_size = (size_t)old_size + ustr_length;
2127+
size_t new_size = (size_t)old_size + ustr_length;
21282128

21292129
if (!arraydata_size_valid(new_size, sizeof(wchar_t))) {
21302130
return PyErr_NoMemory();
@@ -2141,7 +2141,7 @@ array_array_fromunicode_impl(arrayobject *self, PyObject *ustr)
21412141
else { // typecode == 'w'
21422142
Py_ssize_t ustr_length = PyUnicode_GetLength(ustr);
21432143
Py_ssize_t old_size = Py_SIZE(self);
2144-
ssize_t new_size = (size_t)old_size + ustr_length;
2144+
size_t new_size = (size_t)old_size + ustr_length;
21452145

21462146
if (!arraydata_size_valid(new_size, sizeof(Py_UCS4))) {
21472147
return PyErr_NoMemory();

0 commit comments

Comments
 (0)