Mercurial > cpython-lru_cache-weakref
diff Objects/bytesobject.c @ 73655:2e37fc70e2dd
Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
And PyUnicode_GetSize() => PyUnicode_GetLength()
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Mon, 21 Nov 2011 02:49:52 +0100 |
| parents | c1effa2cdd20 |
| children | 215690b782f8 |
line wrap: on
line diff
--- a/Objects/bytesobject.c Mon Nov 21 02:24:49 2011 +0100 +++ b/Objects/bytesobject.c Mon Nov 21 02:49:52 2011 +0100 @@ -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");
