diff Python/pystrtod.c @ 48358:098173e844d1

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. ........
author Eric Smith <eric@trueblade.com>
date Tue, 24 Jun 2008 01:06:47 +0000
parents 23ab586c427a
children 48e83e66935a
line wrap: on
line diff
--- a/Python/pystrtod.c	Mon Jun 23 11:45:20 2008 +0000
+++ b/Python/pystrtod.c	Tue Jun 24 01:06:47 2008 +0000
@@ -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 */