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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
f8637044
Commit
f8637044
authored
Feb 29, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix usage of refnanny macros in memoryview utility code
parent
63ec6c08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Utility/MemoryView_C.c
Cython/Utility/MemoryView_C.c
+3
-3
No files found.
Cython/Utility/MemoryView_C.c
View file @
f8637044
...
@@ -167,7 +167,7 @@ static int __Pyx_ValidateAndInit_memviewslice(
...
@@ -167,7 +167,7 @@ static int __Pyx_ValidateAndInit_memviewslice(
__Pyx_BufFmt_Context
ctx
;
__Pyx_BufFmt_Context
ctx
;
int
from_memoryview
=
__pyx_memoryview_check
(
original_obj
);
int
from_memoryview
=
__pyx_memoryview_check
(
original_obj
);
__Pyx_RefNannySetupContext
(
"ValidateAndInit_memviewslice"
);
__Pyx_RefNannySetupContext
(
"ValidateAndInit_memviewslice"
,
0
);
if
(
from_memoryview
&&
__pyx_typeinfo_cmp
(
dtype
,
((
struct
__pyx_memoryview_obj
*
)
if
(
from_memoryview
&&
__pyx_typeinfo_cmp
(
dtype
,
((
struct
__pyx_memoryview_obj
*
)
original_obj
)
->
typeinfo
))
{
original_obj
)
->
typeinfo
))
{
...
@@ -307,7 +307,7 @@ __Pyx_init_memviewslice(struct __pyx_memoryview_obj *memview,
...
@@ -307,7 +307,7 @@ __Pyx_init_memviewslice(struct __pyx_memoryview_obj *memview,
__Pyx_RefNannyDeclarations
__Pyx_RefNannyDeclarations
int
i
,
retval
=-
1
;
int
i
,
retval
=-
1
;
Py_buffer
*
buf
=
&
memview
->
view
;
Py_buffer
*
buf
=
&
memview
->
view
;
__Pyx_RefNannySetupContext
(
"init_memviewslice"
);
__Pyx_RefNannySetupContext
(
"init_memviewslice"
,
0
);
if
(
!
buf
)
{
if
(
!
buf
)
{
PyErr_SetString
(
PyExc_ValueError
,
PyErr_SetString
(
PyExc_ValueError
,
...
@@ -470,7 +470,7 @@ __pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
...
@@ -470,7 +470,7 @@ __pyx_memoryview_copy_new_contig(const __Pyx_memviewslice *from_mvs,
struct
__pyx_array_obj
*
array_obj
=
NULL
;
struct
__pyx_array_obj
*
array_obj
=
NULL
;
struct
__pyx_memoryview_obj
*
memview_obj
=
NULL
;
struct
__pyx_memoryview_obj
*
memview_obj
=
NULL
;
__Pyx_RefNannySetupContext
(
"__pyx_memoryview_copy_new_contig"
);
__Pyx_RefNannySetupContext
(
"__pyx_memoryview_copy_new_contig"
,
0
);
for
(
i
=
0
;
i
<
ndim
;
i
++
)
{
for
(
i
=
0
;
i
<
ndim
;
i
++
)
{
if
(
from_mvs
->
suboffsets
[
i
]
>=
0
)
{
if
(
from_mvs
->
suboffsets
[
i
]
>=
0
)
{
...
...
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