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.
........
diff --git a/Python/pystrtod.c b/Python/pystrtod.c
index e7bc22c..5a96b58 100644
--- a/Python/pystrtod.c
+++ b/Python/pystrtod.c
@@ -364,8 +364,8 @@
/* 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 */