summaryrefslogtreecommitdiff
path: root/numpy/f2py/src/fortranobject.c
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2012-01-28 18:40:19 -0700
committerCharles Harris <charlesr.harris@gmail.com>2012-02-04 16:11:39 -0700
commitb63f91e4ce487c89a67ca31ccb2e1c53574b7857 (patch)
tree52f0027c9cfdbfd34c27cd04cc82ac51715053a6 /numpy/f2py/src/fortranobject.c
parent6f9a3ce3545d73d338d6e4467992b66c143093f8 (diff)
downloadnumpy-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.c4
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 {