File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -137,9 +137,11 @@ static PyObject *fmask_func(PyObject *self, PyObject *args) {
137137 if (PyArray_DESCR (TA )-> type_num != NPY_DOUBLE ||
138138 PyArray_NDIM (TA ) != 1 )
139139 return makeTypeException ("Arg 2 (TA): expected 1-dimensional array of type np.float64 w/stride 1." );
140- if (PyArray_DESCR (image )-> type_num != NPY_INT32 ||
140+ // in Windows the type might be INT which is the same as INT32
141+ if ((PyArray_DESCR (image )-> type_num != NPY_INT &&
142+ PyArray_DESCR (image )-> type_num != NPY_INT32 ) ||
141143 PyArray_NDIM (image ) != 1 )
142- return makeTypeException ("Arg 3 (image): expected 1-dimensional array of type np.float64 w/stride 1." );
144+ return makeTypeException ("Arg 3 (image): expected 1-dimensional array of type np.int32 w/stride 1." );
143145 if (PyArray_DESCR (TThs )-> type_num != NPY_DOUBLE ||
144146 PyArray_NDIM (TThs ) != 1 )
145147 return makeTypeException ("Arg 4 (TThs): expected 1-dimensional array of type np.float64 w/stride 1." );
You can’t perform that action at this time.
0 commit comments