mirror of
https://github.com/python/cpython.git
synced 2025-11-20 02:50:14 +00:00
Merged revisions 82159 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r82159 | benjamin.peterson | 2010-06-22 14:21:52 -0500 (Tue, 22 Jun 2010) | 9 lines
Merged revisions 82157 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r82157 | benjamin.peterson | 2010-06-22 14:16:37 -0500 (Tue, 22 Jun 2010) | 1 line
remove INT_MAX assertions; they can fail with large Py_ssize_t #9058
........
................
This commit is contained in:
parent
f4b552e7d5
commit
479a38b8fd
2 changed files with 2 additions and 3 deletions
|
|
@ -1608,9 +1608,6 @@ PyUnicodeDecodeError_Create(
|
|||
const char *encoding, const char *object, Py_ssize_t length,
|
||||
Py_ssize_t start, Py_ssize_t end, const char *reason)
|
||||
{
|
||||
assert(length < INT_MAX);
|
||||
assert(start < INT_MAX);
|
||||
assert(end < INT_MAX);
|
||||
return PyObject_CallFunction(PyExc_UnicodeDecodeError, "Uy#nnU",
|
||||
encoding, object, length, start, end, reason);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue