summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-07-17 15:15:56 +0000
committerPauli Virtanen <pav@iki.fi>2010-07-17 15:15:56 +0000
commit08683302b493e2be0ab30661018c4b5f97c90995 (patch)
treee1ee61b5568801d3072dc197fcad0f50eba1743e /numpy
parent6f20d1e7650fbb3ad61855ca5d85dff0aafe2f72 (diff)
downloadnumpy-08683302b493e2be0ab30661018c4b5f97c90995.tar.gz
BUG: core: harmonize complex number formatting with Python 2.7 (#1534)
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/src/multiarray/scalartypes.c.src2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/multiarray/scalartypes.c.src b/numpy/core/src/multiarray/scalartypes.c.src
index d57cf45ce..f4212eb04 100644
--- a/numpy/core/src/multiarray/scalartypes.c.src
+++ b/numpy/core/src/multiarray/scalartypes.c.src
@@ -410,7 +410,7 @@ format_c@name@(char *buf, size_t buflen, c@name@ val, unsigned int prec)
/*
* Ideally, we should handle this nan/inf stuff in NumpyOS_ascii_format*
*/
-#if PY_VERSION_HEX >= 0x03000000
+#if PY_VERSION_HEX >= 0x02070000
if (val.real == 0.0 && npy_signbit(val.real) == 0) {
#else
if (val.real == 0.0) {