commit | 9e30aa52fd416e17b692c4f22e57191cdd6ec654 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Mon Nov 21 02:49:52 2011 +0100 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Mon Nov 21 02:49:52 2011 +0100 |
tree | f3b1c85f5cdbb6a32ec8f309400e8d3e1c2bbfaf | |
parent | f3ae6208c706bae89d86df44c7c3dcac1bdcd94d [diff] [blame] |
Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH() And PyUnicode_GetSize() => PyUnicode_GetLength()
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index 7438a70..a89798a 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c
@@ -2941,7 +2941,7 @@ PyErr_BadInternalCall(); return NULL; } - llen = PyUnicode_GetSize(result); + llen = PyUnicode_GetLength(result); if (llen > INT_MAX) { PyErr_SetString(PyExc_ValueError, "string too large in _PyBytes_FormatLong");