diff options
| author | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-10 21:47:38 +0100 |
|---|---|---|
| committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-11-10 21:47:38 +0100 |
| commit | de20b0b50e7b28a8f6eba8fb7e6f18063d5709b4 (patch) | |
| tree | d5a4b350abfaf0c6f6cacfe046079caf95529753 /Objects/unicodeobject.c | |
| parent | 9f4b1e9c50da83b51a4b0c7ee7d7dc3ef94a0cf6 (diff) | |
| download | cpython-git-de20b0b50e7b28a8f6eba8fb7e6f18063d5709b4.tar.gz | |
Issue #13149: Speed up append-only StringIO objects.
This is very similar to the "lazy strings" idea.
Diffstat (limited to 'Objects/unicodeobject.c')
| -rw-r--r-- | Objects/unicodeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 3f580b5ff6..772707de8b 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -2055,7 +2055,7 @@ Py_UCS4* PyUnicode_AsUCS4(PyObject *string, Py_UCS4 *target, Py_ssize_t targetsize, int copy_null) { - if (target == NULL || targetsize < 1) { + if (target == NULL || targetsize < 0) { PyErr_BadInternalCall(); return NULL; } |
