diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2012-01-28 18:40:19 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2012-02-04 16:11:39 -0700 |
commit | b63f91e4ce487c89a67ca31ccb2e1c53574b7857 (patch) | |
tree | 52f0027c9cfdbfd34c27cd04cc82ac51715053a6 /numpy/f2py/src/fortranobject.c | |
parent | 6f9a3ce3545d73d338d6e4467992b66c143093f8 (diff) | |
download | numpy-b63f91e4ce487c89a67ca31ccb2e1c53574b7857.tar.gz |
STY: f2py - replace macros in old_defines.h with new.
Diffstat (limited to 'numpy/f2py/src/fortranobject.c')
-rw-r--r-- | numpy/f2py/src/fortranobject.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/f2py/src/fortranobject.c b/numpy/f2py/src/fortranobject.c index ff80fa7e5..f5e2c6244 100644 --- a/numpy/f2py/src/fortranobject.c +++ b/numpy/f2py/src/fortranobject.c @@ -51,10 +51,10 @@ PyFortranObject_New(FortranDataDef* defs, f2py_void_func init) { PyDict_SetItemString(fp->dict,fp->defs[i].name,v); } else if ((fp->defs[i].data)!=NULL) { /* Is Fortran variable or array (not allocatable) */ - if (fp->defs[i].type == PyArray_STRING) { + if (fp->defs[i].type == NPY_STRING) { int n = fp->defs[i].rank-1; v = PyArray_New(&PyArray_Type, n, fp->defs[i].dims.d, - PyArray_STRING, NULL, fp->defs[i].data, fp->defs[i].dims.d[n], + NPY_STRING, NULL, fp->defs[i].data, fp->defs[i].dims.d[n], NPY_FARRAY, NULL); } else { |