summaryrefslogtreecommitdiff
path: root/scipy/f2py/src/fortranobject.c
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2005-11-14 23:56:10 +0000
committerTravis Oliphant <oliphant@enthought.com>2005-11-14 23:56:10 +0000
commitd692bad8cda28858c113563722c7d66bd4d9f73b (patch)
treeda205f5c1fb5727e2ce44752bfce43e48b5d15b6 /scipy/f2py/src/fortranobject.c
parent51508b2a55b9f96105dfa03d84a3bbc0341efc1a (diff)
downloadnumpy-d692bad8cda28858c113563722c7d66bd4d9f73b.tar.gz
Closed a few more leaks.
Diffstat (limited to 'scipy/f2py/src/fortranobject.c')
-rw-r--r--scipy/f2py/src/fortranobject.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scipy/f2py/src/fortranobject.c b/scipy/f2py/src/fortranobject.c
index 05f712603..15168303a 100644
--- a/scipy/f2py/src/fortranobject.c
+++ b/scipy/f2py/src/fortranobject.c
@@ -629,7 +629,8 @@ PyArrayObject* array_from_pyobj(const int type_num,
F2PY_REPORT_ON_ARRAY_COPY_FROMANY;
arr = (PyArrayObject *) \
PyArray_FromAny(obj,&typecode, 0,0,
- ((intent & F2PY_INTENT_C)?CARRAY_FLAGS:FARRAY_FLAGS));
+ ((intent & F2PY_INTENT_C)?CARRAY_FLAGS:FARRAY_FLAGS) \
+ | FORCECAST );
if (arr==NULL)
return NULL;
if (check_and_fix_dimensions(arr,rank,dims))