Commit 200023c2 authored by Stefan Behnel's avatar Stefan Behnel

minor code cleanup

parent 5dc88bf2
...@@ -304,8 +304,7 @@ class MemoryViewSliceBufferEntry(Buffer.BufferEntry): ...@@ -304,8 +304,7 @@ class MemoryViewSliceBufferEntry(Buffer.BufferEntry):
no_suboffset_dim = all_dimensions_direct and not have_slices no_suboffset_dim = all_dimensions_direct and not have_slices
if not no_suboffset_dim: if not no_suboffset_dim:
suboffset_dim = code.funcstate.allocate_temp( suboffset_dim = code.funcstate.allocate_temp(PyrexTypes.c_int_type, manage_ref=False)
PyrexTypes.c_int_type, False)
code.putln("%s = -1;" % suboffset_dim) code.putln("%s = -1;" % suboffset_dim)
code.putln("%(dst)s.data = %(src)s.data;" % locals()) code.putln("%(dst)s.data = %(src)s.data;" % locals())
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment