[Python-checkins] cpython (3.3): only define zero constant when it is used
benjamin.peterson
python-checkins at python.org
Sat Mar 15 17:50:26 CET 2014
http://hg.python.org/cpython/rev/3f93907ab8e1
changeset: 89666:3f93907ab8e1
branch: 3.3
user: Benjamin Peterson <benjamin at python.org>
date: Sat Mar 15 11:50:00 2014 -0500
summary:
only define zero constant when it is used
files:
Modules/_math.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Modules/_math.c b/Modules/_math.c
--- a/Modules/_math.c
+++ b/Modules/_math.c
@@ -22,7 +22,9 @@
static const double ln2 = 6.93147180559945286227E-01;
static const double two_pow_m28 = 3.7252902984619141E-09; /* 2**-28 */
static const double two_pow_p28 = 268435456.0; /* 2**28 */
+#ifndef Py_NAN
static const double zero = 0.0;
+#endif
/* acosh(x)
* Method :
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list