diff Python/formatter_unicode.c @ 72863:afa42c04f0a3

Fix misuse of PyUnicode_GET_SIZE, use PyUnicode_GET_LENGTH instead
author Victor Stinner <victor.stinner@haypocalc.com>
date Tue, 11 Oct 2011 22:11:42 +0200
parents c25262e97304
children 7e37598a25a6
line wrap: on
line diff
--- a/Python/formatter_unicode.c	Tue Oct 11 21:53:24 2011 +0200
+++ b/Python/formatter_unicode.c	Tue Oct 11 22:11:42 2011 +0200
@@ -693,7 +693,7 @@
     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;