@@ -127,13 +127,13 @@ py_weights_gauss_legendre005003 (PyObject * self, PyObject * args)
127127 if (!PyArg_ParseTuple (args , "OO" , & sigma_py , & omega_py ))
128128 return NULL ;
129129
130- if (sigma_py -> nd != 2 || sigma_py -> descr -> type_num != PyArray_DOUBLE )
130+ if (sigma_py -> nd != 2 || sigma_py -> descr -> type_num != NPY_DOUBLE )
131131 {
132132 PyErr_SetString (PyExc_ValueError , "sigma must be two-dimensional and of type float" );
133133 return NULL ;
134134 }
135135
136- if (omega_py -> descr -> type_num != PyArray_DOUBLE )
136+ if (omega_py -> descr -> type_num != NPY_DOUBLE )
137137 {
138138 PyErr_SetString (PyExc_ValueError , "omega must be of type float" );
139139 return NULL ;
@@ -295,13 +295,13 @@ py_reconstruct_gauss_legendre005003 (PyObject * self, PyObject * args)
295295 if (!PyArg_ParseTuple (args , "OOO" , & f_py , & omega_py , & fr_py ))
296296 return NULL ;
297297
298- if (f_py -> nd != 1 || f_py -> descr -> type_num != PyArray_DOUBLE )
298+ if (f_py -> nd != 1 || f_py -> descr -> type_num != NPY_DOUBLE )
299299 {
300300 PyErr_SetString (PyExc_ValueError , "f must be one-dimensional and of type float" );
301301 return NULL ;
302302 }
303303
304- if (fr_py -> descr -> type_num != PyArray_DOUBLE )
304+ if (fr_py -> descr -> type_num != NPY_DOUBLE )
305305 {
306306 PyErr_SetString (PyExc_ValueError , "fr must be of type float" );
307307 return NULL ;
@@ -313,7 +313,7 @@ py_reconstruct_gauss_legendre005003 (PyObject * self, PyObject * args)
313313 return NULL ;
314314 }
315315
316- if (omega_py -> descr -> type_num != PyArray_DOUBLE )
316+ if (omega_py -> descr -> type_num != NPY_DOUBLE )
317317 {
318318 PyErr_SetString (PyExc_ValueError , "omega must be of type float" );
319319 return NULL ;
0 commit comments