diff Python/pystrtod.c @ 47815:752e1abaf15a legacy-trunk

Modified interface to _Py_[String|Unicode]InsertThousandsGrouping, in anticipation of fixing issue 3140.
author Eric Smith <eric@trueblade.com>
date Tue, 24 Jun 2008 00:42:10 +0000
parents 52294af4b663
children 40db45bfc0f2
line wrap: on
line diff
--- a/Python/pystrtod.c	Mon Jun 23 19:51:41 2008 +0000
+++ b/Python/pystrtod.c	Tue Jun 24 00:42:10 2008 +0000
@@ -364,7 +364,7 @@
 	/* 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 _PyString_InsertThousandsGrouping(buffer, len, p,
+	return _PyString_InsertThousandsGrouping(buffer, len, p-buffer,
 						 buf_size, NULL, 1);
 }