diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-21 01:49:52 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-11-21 01:49:52 (GMT) |
commit | 9e30aa52fd416e17b692c4f22e57191cdd6ec654 (patch) | |
tree | f3b1c85f5cdbb6a32ec8f309400e8d3e1c2bbfaf /Modules/_gestalt.c | |
parent | f3ae6208c706bae89d86df44c7c3dcac1bdcd94d (diff) | |
download | cpython-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 'Modules/_gestalt.c')
-rw-r--r-- | Modules/_gestalt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_gestalt.c b/Modules/_gestalt.c index a45780f..cd30683 100644 --- a/Modules/_gestalt.c +++ b/Modules/_gestalt.c @@ -33,7 +33,7 @@ static int convert_to_OSType(PyObject *v, OSType *pr) { uint32_t tmp; - if (!PyUnicode_Check(v) || PyUnicode_GetSize(v) != 4) { + if (!PyUnicode_Check(v) || PyUnicode_GetLength(v) != 4) { PyErr_SetString(PyExc_TypeError, "OSType arg must be string of 4 chars"); return 0; |