summaryrefslogtreecommitdiffstats
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-04-13 07:24:50 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-04-13 07:24:50 (GMT)
commitf15da6995b974238bc4af10bc260e4c209c13a1f (patch)
tree4b862c778401d6a27ff865cb8bae25494993b7d7 /Objects/unicodeobject.c
parent8ce358f5fe6884f284d24ee45f89d9473696a1bf (diff)
downloadcpython-f15da6995b974238bc4af10bc260e4c209c13a1f.zip
cpython-f15da6995b974238bc4af10bc260e4c209c13a1f.tar.gz
cpython-f15da6995b974238bc4af10bc260e4c209c13a1f.tar.bz2
Remove another INT_MAX limitation
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 489fd1f..668d6e4 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(length<INT_MAX);
- unicode->length = (int)length;
+ unicode->length = length;
unicode->hash = -1;
unicode->defenc = NULL;
return unicode;