summaryrefslogtreecommitdiff
path: root/Cython/Compiler/MemoryView.py
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2014-12-31 14:55:30 +0100
committerStefan Behnel <stefan_ml@behnel.de>2014-12-31 14:55:30 +0100
commit200023c2dd1d5a5b701d6243154960400820f3ca (patch)
tree845ebcaeb3f1f586715e142bf0af32fae30f136d /Cython/Compiler/MemoryView.py
parent5dc88bf2161e5bd61cf305ac6736a2c9c0a1cb92 (diff)
downloadcython-200023c2dd1d5a5b701d6243154960400820f3ca.tar.gz
minor code cleanup
Diffstat (limited to 'Cython/Compiler/MemoryView.py')
-rw-r--r--Cython/Compiler/MemoryView.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Cython/Compiler/MemoryView.py b/Cython/Compiler/MemoryView.py
index 0a01f0bb8..892655539 100644
--- a/Cython/Compiler/MemoryView.py
+++ b/Cython/Compiler/MemoryView.py
@@ -304,8 +304,7 @@ class MemoryViewSliceBufferEntry(Buffer.BufferEntry):
no_suboffset_dim = all_dimensions_direct and not have_slices
if not no_suboffset_dim:
- suboffset_dim = code.funcstate.allocate_temp(
- PyrexTypes.c_int_type, False)
+ suboffset_dim = code.funcstate.allocate_temp(PyrexTypes.c_int_type, manage_ref=False)
code.putln("%s = -1;" % suboffset_dim)
code.putln("%(dst)s.data = %(src)s.data;" % locals())