summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-06-24 01:06:47 +0000
committerEric Smith <eric@trueblade.com>2008-06-24 01:06:47 +0000
commita26563b7cc020eb1e77ab39a222f3d714fcfa405 (patch)
tree86351e8172618a879f8703421b431f09c6abbbb2 /Python
parent40a6e587737deae5e1b4b33ba0e74bfe6ed16c03 (diff)
downloadcpython-a26563b7cc020eb1e77ab39a222f3d714fcfa405.tar.gz
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. ........
Diffstat (limited to 'Python')
-rw-r--r--Python/pystrtod.c4
1 files changed, 2 insertions, 2 deletions
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 */