Skip to content

Commit

Permalink
MAINT: fix some f2py related build warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgommers committed Jan 22, 2014
1 parent 783b96d commit 35f996a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/f2py/src/fortranobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ fortran_call(PyFortranObject *fp, PyObject *arg, PyObject *kw) {
name=%s,func=%p,data=%p,%p\n",fp->defs[i].name,
fp->defs[i].func,fp->defs[i].data,&fp->defs[i].data); */
if (fp->defs[i].rank==-1) {/* is Fortran routine */
if ((fp->defs[i].func==NULL)) {
if (fp->defs[i].func==NULL) {
PyErr_Format(PyExc_RuntimeError, "no function to call");
return NULL;
}
Expand Down

0 comments on commit 35f996a

Please sign in to comment.