summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEgor Zindy <ezindy@gmail.com>2013-06-16 21:46:36 +0100
committerEgor Zindy <ezindy@gmail.com>2013-06-16 21:46:36 +0100
commit1ed31cd9f829900ed97b31f1ed924de0d326f939 (patch)
treeef7b358891c30f46fd34e0f9eb70a2882d7d9476 /doc
parenta2bac9db372bb1c1570bc3c1912e09cc832f3d52 (diff)
downloadnumpy-1ed31cd9f829900ed97b31f1ed924de0d326f939.tar.gz
Removed 'static' keyword from pyfragments.swg altoghether. I've had the following errors In function ‘SWIG_AsVal_long’: error: initialiser element is not constant In function ‘SWIG_AsVal_unsigned_SS_long’: error: initialiser element is not constant, BOTH in Windows/MinGW and Linux when compiling with gcc
Diffstat (limited to 'doc')
-rw-r--r--doc/swig/pyfragments.swg4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/swig/pyfragments.swg b/doc/swig/pyfragments.swg
index 8f077ee62..b5decf12c 100644
--- a/doc/swig/pyfragments.swg
+++ b/doc/swig/pyfragments.swg
@@ -22,7 +22,7 @@
SWIGINTERN int
SWIG_AsVal_dec(long)(PyObject * obj, long * val)
{
- static PyArray_Descr * longDescr = PyArray_DescrNewFromType(NPY_LONG);
+ PyArray_Descr * longDescr = PyArray_DescrNewFromType(NPY_LONG);
if (PyInt_Check(obj)) {
if (val) *val = PyInt_AsLong(obj);
return SWIG_OK;
@@ -74,7 +74,7 @@
SWIGINTERN int
SWIG_AsVal_dec(unsigned long)(PyObject *obj, unsigned long *val)
{
- static PyArray_Descr * ulongDescr = PyArray_DescrNewFromType(NPY_ULONG);
+ PyArray_Descr * ulongDescr = PyArray_DescrNewFromType(NPY_ULONG);
if (PyInt_Check(obj)) {
long v = PyInt_AsLong(obj);
if (v >= 0) {