diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-11 22:11:42 +0200 |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-10-11 22:11:42 +0200 |
commit | a9a394e1adfc52461ed6e062282256b6f59e809b (patch) | |
tree | 9cf6a37bdc692a17809fec4568e91ab59696d416 /Python/formatter_unicode.c | |
parent | cb77cacedba65cf061a7e9b1da7812f0cbab4967 (diff) | |
download | cpython-a9a394e1adfc52461ed6e062282256b6f59e809b.tar.gz |
Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r-- | Python/formatter_unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 037880068a..fda79fc657 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -693,7 +693,7 @@ format_string_internal(PyObject *value, const InternalFormatSpec *format) Py_ssize_t rpad; Py_ssize_t total; Py_ssize_t pos; - Py_ssize_t len = PyUnicode_GET_SIZE(value); + Py_ssize_t len = PyUnicode_GET_LENGTH(value); PyObject *result = NULL; int maxchar = 127; |