summaryrefslogtreecommitdiffstats
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-11-21 01:49:52 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-11-21 01:49:52 (GMT)
commit9e30aa52fd416e17b692c4f22e57191cdd6ec654 (patch)
treef3b1c85f5cdbb6a32ec8f309400e8d3e1c2bbfaf /Objects/bytesobject.c
parentf3ae6208c706bae89d86df44c7c3dcac1bdcd94d (diff)
downloadcpython-9e30aa52fd416e17b692c4f22e57191cdd6ec654.zip
cpython-9e30aa52fd416e17b692c4f22e57191cdd6ec654.tar.gz
cpython-9e30aa52fd416e17b692c4f22e57191cdd6ec654.tar.bz2
Fix misuse of PyUnicode_GET_SIZE() => PyUnicode_GET_LENGTH()
And PyUnicode_GetSize() => PyUnicode_GetLength()
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c2
1 files changed, 1 insertions, 1 deletions
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 @@ _PyBytes_FormatLong(PyObject *val, int flags, int prec, int type,
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");