mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in anticipation of fixing issue 3140.
This commit is contained in:
parent
57acc8f5ab
commit
65fe47b931
4 changed files with 30 additions and 23 deletions
|
@ -364,7 +364,7 @@ add_thousands_grouping(char* buffer, size_t buf_size)
|
|||
/* At this point, p points just past the right-most character we
|
||||
want to format. We need to add the grouping string for the
|
||||
characters between buffer and p. */
|
||||
return _PyString_InsertThousandsGrouping(buffer, len, p,
|
||||
return _PyString_InsertThousandsGrouping(buffer, len, p-buffer,
|
||||
buf_size, NULL, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue