[Python-checkins] r71167 - python/branches/py3k-short-float-repr/Python/marshal.c
mark.dickinson
python-checkins at python.org
Sat Apr 4 18:33:15 CEST 2009
Author: mark.dickinson
Date: Sat Apr 4 18:33:15 2009
New Revision: 71167
Log:
Fix marshalling of floats.
Modified:
python/branches/py3k-short-float-repr/Python/marshal.c
Modified: python/branches/py3k-short-float-repr/Python/marshal.c
==============================================================================
--- python/branches/py3k-short-float-repr/Python/marshal.c (original)
+++ python/branches/py3k-short-float-repr/Python/marshal.c Sat Apr 4 18:33:15 2009
@@ -237,7 +237,7 @@
}
else {
char *buf = PyOS_double_to_string(PyFloat_AS_DOUBLE(v),
- 'g', 0, Py_DTSF_ADD_DOT_0);
+ 'r', 0, Py_DTSF_ADD_DOT_0);
if (!buf)
return;
n = strlen(buf);
More information about the Python-checkins
mailing list