diff options
author | Travis Oliphant <oliphant@enthought.com> | 2005-11-16 05:36:18 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2005-11-16 05:36:18 +0000 |
commit | 48971fb6b2b44cf475f06ef5a53d123081f1315c (patch) | |
tree | 80e564601fe80c30c47c33bb91c3a2f684426afe /scipy/f2py/rules.py | |
parent | 17b9068cc2566b61ed8e8920f1b2ad842b76176c (diff) | |
download | numpy-48971fb6b2b44cf475f06ef5a53d123081f1315c.tar.gz |
Fixed set memory to zero for generic allocator.
Diffstat (limited to 'scipy/f2py/rules.py')
-rw-r--r-- | scipy/f2py/rules.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scipy/f2py/rules.py b/scipy/f2py/rules.py index cb2d78e65..5fa9d7c16 100644 --- a/scipy/f2py/rules.py +++ b/scipy/f2py/rules.py @@ -991,10 +991,10 @@ if (#varname#_capi==Py_None) { ], 'cleanupfrompyobj':[ # note that this list will be reversed '\t} /*if (capi_#varname#_tmp == NULL) ... else of #varname#*/', - {l_not(l_or(isintent_out,isintent_hide)):"""\ + {l_not(isintent_hide):"""\ \tif((PyObject *)capi_#varname#_tmp!=#varname#_capi) { \t\tPy_XDECREF(capi_#varname#_tmp); }"""}, - {l_and(isintent_hide,l_not(isintent_out)):"""\t\tPy_XDECREF(capi_#varname#_tmp);"""}, + {isintent_hide:"""\t\tPy_XDECREF(capi_#varname#_tmp);"""}, {hasinitvalue:'\t} /*if (f2py_success) of #varname# init*/'}, ], '_check':isarray, |