diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-04-13 07:24:50 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-04-13 07:24:50 (GMT) |
commit | f15da6995b974238bc4af10bc260e4c209c13a1f (patch) | |
tree | 4b862c778401d6a27ff865cb8bae25494993b7d7 /Objects | |
parent | 8ce358f5fe6884f284d24ee45f89d9473696a1bf (diff) | |
download | cpython-f15da6995b974238bc4af10bc260e4c209c13a1f.zip cpython-f15da6995b974238bc4af10bc260e4c209c13a1f.tar.gz cpython-f15da6995b974238bc4af10bc260e4c209c13a1f.tar.bz2 |
Remove another INT_MAX limitation
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodeobject.c | 3 |
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; |