diff options
author | wfspotz@sandia.gov <wfspotz@sandia.gov@localhost> | 2007-11-24 02:04:19 +0000 |
---|---|---|
committer | wfspotz@sandia.gov <wfspotz@sandia.gov@localhost> | 2007-11-24 02:04:19 +0000 |
commit | eaae1d014525b81b8ab14fe0acfc2051cf0c8efc (patch) | |
tree | dfc607bc9eb172f519dd3e33215451149fc14f2d | |
parent | 01c13fcc947aada0ffc14d67eda1695e330cb21e (diff) | |
download | numpy-eaae1d014525b81b8ab14fe0acfc2051cf0c8efc.tar.gz |
Added new fragment dependency to unsigned long fragment
-rw-r--r-- | numpy/doc/swig/numpy.i | 4 | ||||
-rw-r--r-- | numpy/doc/swig/pyfragments.swg | 3 |
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) |