File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 ();
You can’t perform that action at this time.
0 commit comments