mirror of
https://github.com/python/cpython.git
synced 2026-05-18 10:24:42 -04:00
Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in anticipation of fixing issue 3140.
This commit is contained in:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user