summaryrefslogtreecommitdiffstats
path: root/Python/pystrtod.c
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2008-06-24 01:06:47 (GMT)
committerEric Smith <eric@trueblade.com>2008-06-24 01:06:47 (GMT)
commit6d7e7a730e05dbf3511f94df400984dd5b7bdfdc (patch)
treef895c365c8f5f3de34dff5939667effdeb5409b1 /Python/pystrtod.c
parent7d84055e253f96437f1681faa3614ecd204b0a49 (diff)
downloadcpython-6d7e7a730e05dbf3511f94df400984dd5b7bdfdc.zip
cpython-6d7e7a730e05dbf3511f94df400984dd5b7bdfdc.tar.gz
cpython-6d7e7a730e05dbf3511f94df400984dd5b7bdfdc.tar.bz2
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/pystrtod.c')
-rw-r--r--Python/pystrtod.c4
1 files changed, 2 insertions, 2 deletions
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 @@ 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 */