Commit 433c0789 authored by Kurt Smith's avatar Kurt Smith Committed by Mark Florisson

don't need to calculate itemsize here.

parent 26fb5448
...@@ -7611,7 +7611,6 @@ class CoerceToMemViewSliceNode(CoercionNode): ...@@ -7611,7 +7611,6 @@ class CoerceToMemViewSliceNode(CoercionNode):
specs_code = MemoryView.specs_to_code(self.type.axes) specs_code = MemoryView.specs_to_code(self.type.axes)
for idx, cspec in enumerate(specs_code): for idx, cspec in enumerate(specs_code):
code.putln("%s[%d] = %s;" % (spec_int_arr, idx, cspec)) code.putln("%s[%d] = %s;" % (spec_int_arr, idx, cspec))
itemsize = self.type.dtype.sign_and_name()
code.globalstate.use_utility_code(Buffer.acquire_utility_code) code.globalstate.use_utility_code(Buffer.acquire_utility_code)
code.globalstate.use_utility_code(MemoryView.memviewslice_init_code) code.globalstate.use_utility_code(MemoryView.memviewslice_init_code)
......
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