]> granicus.if.org Git - python/commitdiff
Remove another INT_MAX limitation
authorMartin v. Löwis <martin@v.loewis.de>
Thu, 13 Apr 2006 07:24:50 +0000 (07:24 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Thu, 13 Apr 2006 07:24:50 +0000 (07:24 +0000)
Objects/unicodeobject.c

index 489fd1f7a6a0186a3140f7b5a8c681bacb5b7d0c..668d6e4d6886c6e282941bacbb6f83a5e5e8b908 100644 (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;