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
Kirill Smelkov
cython
Commits
18923050
Commit
18923050
authored
Apr 10, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid some C compiler warnings in pypy
parent
041d2f7c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Utility/ObjectHandling.c
Cython/Utility/ObjectHandling.c
+2
-2
No files found.
Cython/Utility/ObjectHandling.c
View file @
18923050
...
...
@@ -279,7 +279,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j
{{
for
type
in
[
'
List
'
,
'
Tuple
'
]}}
static
CYTHON_INLINE
PyObject
*
__Pyx_GetItemInt_
{{
type
}}
_Fast
(
PyObject
*
o
,
Py_ssize_t
i
,
int
wraparound
,
int
boundscheck
)
{
CYTHON_UNUSED
int
wraparound
,
CYTHON_UNUSED
int
boundscheck
)
{
#if CYTHON_COMPILING_IN_CPYTHON
if
(
wraparound
&
unlikely
(
i
<
0
))
i
+=
Py
{{
type
}}
_GET_SIZE
(
o
);
if
((
!
boundscheck
)
||
likely
((
0
<=
i
)
&
(
i
<
Py
{{
type
}}
_GET_SIZE
(
o
))))
{
...
...
@@ -295,7 +295,7 @@ static CYTHON_INLINE PyObject *__Pyx_GetItemInt_{{type}}_Fast(PyObject *o, Py_ss
{{
endfor
}}
static
CYTHON_INLINE
PyObject
*
__Pyx_GetItemInt_Fast
(
PyObject
*
o
,
Py_ssize_t
i
,
int
is_list
,
int
wraparound
,
int
boundscheck
)
{
int
is_list
,
CYTHON_UNUSED
int
wraparound
,
CYTHON_UNUSED
int
boundscheck
)
{
#if CYTHON_COMPILING_IN_CPYTHON
if
(
is_list
||
PyList_CheckExact
(
o
))
{
Py_ssize_t
n
=
((
!
wraparound
)
|
likely
(
i
>=
0
))
?
i
:
i
+
PyList_GET_SIZE
(
o
);
...
...
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