diff options
author | Barry Warsaw <barry@python.org> | 2011-10-07 15:15:38 -0400 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2011-10-07 15:15:38 -0400 |
commit | 35d18782fbb5aacf524e2d0c253b4cc2f0e1ca93 (patch) | |
tree | 21a57ee1be4956279e3f6aa23cef63a957a74baa /Python | |
parent | cb9c5ba73673be215e10368d160c173788d58e15 (diff) | |
parent | 532c363ac775c5499f9f00a06c84c7b1a5c4f337 (diff) | |
download | cpython-git-35d18782fbb5aacf524e2d0c253b4cc2f0e1ca93.tar.gz |
Trunk merge
Diffstat (limited to 'Python')
-rw-r--r-- | Python/formatter_unicode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index a389734390..037880068a 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -604,9 +604,9 @@ fill_number(PyObject *out, Py_ssize_t pos, const NumberFieldWidths *spec, #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 |