Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove redundant assert
  • Loading branch information
methane committed May 1, 2020
commit 4ddac33e97846aa6eb2aafdbce544c99f253ef9f
6 changes: 3 additions & 3 deletions Modules/arraymodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -1697,9 +1697,9 @@ array_array_fromunicode_impl(arrayobject *self, PyObject *ustr)
return NULL;
}

Py_ssize_t res = PyUnicode_AsWideChar(
ustr, ((wchar_t *)self->ob_item) + old_size, ustr_length);
assert(res == ustr_length);
// must not fail
PyUnicode_AsWideChar(
ustr, ((wchar_t *)self->ob_item) + old_size, ustr_length);
}

Py_RETURN_NONE;
Expand Down