Remove another INT_MAX limitation

This commit is contained in:
Martin v. Löwis 2006-04-13 07:24:50 +00:00
parent 8ce358f5fe
commit f15da6995b
1 changed files with 1 additions and 2 deletions

View File

@ -225,8 +225,7 @@ PyUnicodeObject *_PyUnicode_New(Py_ssize_t length)
*/
unicode->str[0] = 0;
unicode->str[length] = 0;
assert(length<INT_MAX);
unicode->length = (int)length;
unicode->length = length;
unicode->hash = -1;
unicode->defenc = NULL;
return unicode;