diff options
author | David Cournapeau <cournape@gmail.com> | 2009-03-08 07:27:32 +0000 |
---|---|---|
committer | David Cournapeau <cournape@gmail.com> | 2009-03-08 07:27:32 +0000 |
commit | 06ffe4d37371ed799ce7e00be34eb992105afccc (patch) | |
tree | 7e88628c59d2077ee03027e17ce3634fe7e307be /numpy/core/src | |
parent | ff0b512c08228f7183f68590fe0bc0278aa9c354 (diff) | |
download | numpy-06ffe4d37371ed799ce7e00be34eb992105afccc.tar.gz |
Use NPY_PI instead of C math lib one, which is not always available.
Diffstat (limited to 'numpy/core/src')
-rw-r--r-- | numpy/core/src/umathmodule.c.src | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/src/umathmodule.c.src b/numpy/core/src/umathmodule.c.src index f0eb20f4a..890b38a5b 100644 --- a/numpy/core/src/umathmodule.c.src +++ b/numpy/core/src/umathmodule.c.src @@ -210,7 +210,7 @@ PyMODINIT_FUNC initumath(void) { InitOtherOperators(d); - PyDict_SetItemString(d, "pi", s = PyFloat_FromDouble(M_PI)); + PyDict_SetItemString(d, "pi", s = PyFloat_FromDouble(NPY_PI)); Py_DECREF(s); PyDict_SetItemString(d, "e", s = PyFloat_FromDouble(exp(1.0))); Py_DECREF(s); |