diff Python/formatter_unicode.c @ 72796:c25262e97304

Change PyUnicode_KIND to 1,2,4. Drop _KIND_SIZE and _CHARACTER_SIZE.
author Martin v. Löwis <martin@v.loewis.de>
date Fri, 07 Oct 2011 20:55:35 +0200
parents 6f03716079a9
children afa42c04f0a3
line wrap: on
line diff
--- a/Python/formatter_unicode.c	Fri Oct 07 17:02:31 2011 +0200
+++ b/Python/formatter_unicode.c	Fri Oct 07 20:55:35 2011 +0200
@@ -604,9 +604,9 @@
 #endif
             _PyUnicode_InsertThousandsGrouping(
                 out, kind,
-                (char*)data + PyUnicode_KIND_SIZE(kind, pos),
+                (char*)data + kind * pos,
                 spec->n_grouped_digits,
-                pdigits + PyUnicode_KIND_SIZE(kind, d_pos),
+                pdigits + kind * d_pos,
                 spec->n_digits, spec->n_min_width,
                 locale->grouping, locale->thousands_sep);
 #ifndef NDEBUG