summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-03-08 07:27:32 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-03-08 07:27:32 +0000
commit06ffe4d37371ed799ce7e00be34eb992105afccc (patch)
tree7e88628c59d2077ee03027e17ce3634fe7e307be /numpy/core/src
parentff0b512c08228f7183f68590fe0bc0278aa9c354 (diff)
downloadnumpy-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.src2
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);