From 6d7e7a730e05dbf3511f94df400984dd5b7bdfdc Mon Sep 17 00:00:00 2001 From: Eric Smith Date: Tue, 24 Jun 2008 01:06:47 +0000 Subject: Merged revisions 64491 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r64491 | eric.smith | 2008-06-23 20:42:10 -0400 (Mon, 23 Jun 2008) | 1 line Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in anticipation of fixing issue 3140. ........ --- Python/pystrtod.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Python/pystrtod.c') diff --git a/Python/pystrtod.c b/Python/pystrtod.c index e7bc22c243..5a96b58e15 100644 --- a/Python/pystrtod.c +++ b/Python/pystrtod.c @@ -364,8 +364,8 @@ 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 _PyBytes_InsertThousandsGrouping(buffer, len, p, - buf_size, NULL, 1); + return _PyBytes_InsertThousandsGrouping(buffer, len, p-buffer, + buf_size, NULL, 1); } /* see FORMATBUFLEN in unicodeobject.c */ -- cgit v1.2.3