diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-12-04 03:30:11 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-12-04 03:30:11 +0000 |
commit | 75e30359f2deeafc6a5aac954af035fa2b9f3349 (patch) | |
tree | f1fdfbcb14224808c8c229b5f825523bf1cbca83 /scipy/f2py/src/fortranobject.c | |
parent | a28f19c2240e48a41a70e5ee543da1fbaf7af1bb (diff) | |
download | numpy-75e30359f2deeafc6a5aac954af035fa2b9f3349.tar.gz |
More changes...
Diffstat (limited to 'scipy/f2py/src/fortranobject.c')
-rw-r--r-- | scipy/f2py/src/fortranobject.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/scipy/f2py/src/fortranobject.c b/scipy/f2py/src/fortranobject.c index 15168303a..e1fde0afa 100644 --- a/scipy/f2py/src/fortranobject.c +++ b/scipy/f2py/src/fortranobject.c @@ -625,10 +625,9 @@ PyArrayObject* array_from_pyobj(const int type_num, } { - PyArray_Typecode typecode = {type_num, 0, 0}; F2PY_REPORT_ON_ARRAY_COPY_FROMANY; arr = (PyArrayObject *) \ - PyArray_FromAny(obj,&typecode, 0,0, + PyArray_FromAny(obj,PyArray_DescrFromType(type_num), 0,0, ((intent & F2PY_INTENT_C)?CARRAY_FLAGS:FARRAY_FLAGS) \ | FORCECAST ); if (arr==NULL) |