summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwfspotz@sandia.gov <wfspotz@sandia.gov@localhost>2007-11-24 02:04:19 +0000
committerwfspotz@sandia.gov <wfspotz@sandia.gov@localhost>2007-11-24 02:04:19 +0000
commiteaae1d014525b81b8ab14fe0acfc2051cf0c8efc (patch)
treedfc607bc9eb172f519dd3e33215451149fc14f2d
parent01c13fcc947aada0ffc14d67eda1695e330cb21e (diff)
downloadnumpy-eaae1d014525b81b8ab14fe0acfc2051cf0c8efc.tar.gz
Added new fragment dependency to unsigned long fragment
-rw-r--r--numpy/doc/swig/numpy.i4
-rw-r--r--numpy/doc/swig/pyfragments.swg3
2 files changed, 4 insertions, 3 deletions
diff --git a/numpy/doc/swig/numpy.i b/numpy/doc/swig/numpy.i
index 250f8524d..cdbc931db 100644
--- a/numpy/doc/swig/numpy.i
+++ b/numpy/doc/swig/numpy.i
@@ -1112,14 +1112,14 @@
* The follow macro expansion does not work, because C++ bool is 4
* bytes and NPY_BOOL is 1 byte
*/
-/*%numpy_typemaps(bool, NPY_BOOL)
+/*%numpy_typemaps(bool, NPY_BOOL, int)
*/
/* ***************************************************************
* On my Mac, I get the following warning for this macro expansion:
* 'swig/python detected a memory leak of type 'long double *', no destructor found.'
*/
-/*%numpy_typemaps(long double, NPY_LONGDOUBLE)
+/*%numpy_typemaps(long double, NPY_LONGDOUBLE, int)
*/
/* ***************************************************************
diff --git a/numpy/doc/swig/pyfragments.swg b/numpy/doc/swig/pyfragments.swg
index e955cdaf2..84545e57c 100644
--- a/numpy/doc/swig/pyfragments.swg
+++ b/numpy/doc/swig/pyfragments.swg
@@ -155,7 +155,8 @@
*/
%fragment(SWIG_AsVal_frag(unsigned long),"header",
- fragment="SWIG_CanCastAsInteger")
+ fragment="SWIG_CanCastAsInteger",
+ fragment="NumPy_Backward_Compatibility")
{
SWIGINTERN int
SWIG_AsVal_dec(unsigned long)(PyObject *obj, unsigned long *val)