Commit 9b3555dc authored by Kurt Smith's avatar Kurt Smith Committed by Mark Florisson

rename memviewslice init function.

parent f4db6743
...@@ -316,7 +316,7 @@ cdef is_cf_contig(int *specs, int ndim): ...@@ -316,7 +316,7 @@ cdef is_cf_contig(int *specs, int ndim):
return is_c_contig, is_f_contig return is_c_contig, is_f_contig
cdef object pyxmemviewslice_from_memview( cdef object init_memviewslice_from_memview(
memoryview memview, memoryview memview,
int *axes_specs, int *axes_specs,
int ndim, int ndim,
......
...@@ -7600,7 +7600,7 @@ class CoerceToMemViewNode(CoercionNode): ...@@ -7600,7 +7600,7 @@ class CoerceToMemViewNode(CoercionNode):
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() itemsize = self.type.dtype.sign_and_name()
format = MemoryView.format_from_type(self.type.dtype) format = MemoryView.format_from_type(self.type.dtype)
code.putln("__pyx_viewaxis_pyxmemview_from_memview((struct __pyx_obj_memoryview *)%s, %s, %d, sizeof(%s), \"%s\", &%s);" % (memviewobj, spec_int_arr, ndim, itemsize, format, self.result())) code.putln("__pyx_viewaxis_init_memviewslice_from_memview((struct __pyx_obj_memoryview *)%s, %s, %d, sizeof(%s), \"%s\", &%s);" % (memviewobj, spec_int_arr, ndim, itemsize, format, self.result()))
code.funcstate.release_temp(memviewobj) code.funcstate.release_temp(memviewobj)
code.funcstate.release_temp(spec_int_arr) code.funcstate.release_temp(spec_int_arr)
code.putln('/* @@@ */') code.putln('/* @@@ */')
......
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