From: Martin v. Löwis Date: Thu, 13 Apr 2006 07:24:50 +0000 (+0000) Subject: Remove another INT_MAX limitation X-Git-Tag: v2.5a2~276 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f15da6995b974238bc4af10bc260e4c209c13a1f;p=thirdparty%2FPython%2Fcpython.git Remove another INT_MAX limitation --- diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 489fd1f7a6a0..668d6e4d6886 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -225,8 +225,7 @@ PyUnicodeObject *_PyUnicode_New(Py_ssize_t length) */ unicode->str[0] = 0; unicode->str[length] = 0; - assert(lengthlength = (int)length; + unicode->length = length; unicode->hash = -1; unicode->defenc = NULL; return unicode;