Kaydet (Commit) f15da699 authored tarafından Martin v. Löwis's avatar Martin v. Löwis

Remove another INT_MAX limitation

üst 8ce358f5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment