Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
f9dbd6a2
Commit
f9dbd6a2
authored
4 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Suppress two "undefined argument order" warnings issued by Cython's memoryview code.
parent
0b9a8269
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Cython/Utility/MemoryView.pyx
Cython/Utility/MemoryView.pyx
+6
-5
No files found.
Cython/Utility/MemoryView.pyx
View file @
f9dbd6a2
...
...
@@ -442,10 +442,10 @@ cdef class memoryview:
cdef
setitem_slice_assignment
(
self
,
dst
,
src
):
cdef
{{
memviewslice_name
}}
dst_slice
cdef
{{
memviewslice_name
}}
src_slice
cdef
{{
memviewslice_name
}}
msrc
=
get_slice_from_memview
(
src
,
&
src_slice
)[
0
]
cdef
{{
memviewslice_name
}}
mdst
=
get_slice_from_memview
(
dst
,
&
dst_slice
)[
0
]
memoryview_copy_contents
(
get_slice_from_memview
(
src
,
&
src_slice
)[
0
],
get_slice_from_memview
(
dst
,
&
dst_slice
)[
0
],
src
.
ndim
,
dst
.
ndim
,
self
.
dtype_is_object
)
memoryview_copy_contents
(
msrc
,
mdst
,
src
.
ndim
,
dst
.
ndim
,
self
.
dtype_is_object
)
cdef
setitem_slice_assign_scalar
(
self
,
memoryview
dst
,
value
):
cdef
int
array
[
128
]
...
...
@@ -739,15 +739,16 @@ cdef memoryview memview_slice(memoryview memview, object indices):
# may not be as expected"
cdef
{{
memviewslice_name
}}
*
p_dst
=
&
dst
cdef
int
*
p_suboffset_dim
=
&
suboffset_dim
cdef
Py_ssize_t
start
,
stop
,
step
cdef
Py_ssize_t
start
,
stop
,
step
,
cindex
cdef
bint
have_start
,
have_stop
,
have_step
for
dim
,
index
in
enumerate
(
indices
):
if
PyIndex_Check
(
index
):
cindex
=
index
slice_memviewslice
(
p_dst
,
p_src
.
shape
[
dim
],
p_src
.
strides
[
dim
],
p_src
.
suboffsets
[
dim
],
dim
,
new_ndim
,
p_suboffset_dim
,
index
,
0
,
0
,
# start, stop, step
c
index
,
0
,
0
,
# start, stop, step
0
,
0
,
0
,
# have_{start,stop,step}
False
)
elif
index
is
None
:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment