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
a2db27bb
Commit
a2db27bb
authored
Jul 16, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some C compiler warnings about comparison between signed and unsigned in helper code
parent
7ecce71e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Utility/Optimize.c
Cython/Utility/Optimize.c
+3
-3
No files found.
Cython/Utility/Optimize.c
View file @
a2db27bb
...
@@ -613,7 +613,7 @@ static PyObject* __Pyx_PyInt_{{op}}{{order}}(PyObject *op1, PyObject *op2, CYTHO
...
@@ -613,7 +613,7 @@ static PyObject* __Pyx_PyInt_{{op}}{{order}}(PyObject *op1, PyObject *op2, CYTHO
}
}
return
PyInt_FromLong
(
x
);
return
PyInt_FromLong
(
x
);
{{
elif
op
==
'
Lshift
'
}}
{{
elif
op
==
'
Lshift
'
}}
if
(
likely
(
b
<
sizeof
(
long
)
*
8
&&
a
==
(
a
<<
b
)
>>
b
)
||
!
a
)
{
if
(
likely
(
b
<
(
long
)
(
sizeof
(
long
)
*
8
)
&&
a
==
(
a
<<
b
)
>>
b
)
||
!
a
)
{
return
PyInt_FromLong
(
a
{{
c_op
}}
b
);
return
PyInt_FromLong
(
a
{{
c_op
}}
b
);
}
}
{{
else
}}
{{
else
}}
...
@@ -702,12 +702,12 @@ static PyObject* __Pyx_PyInt_{{op}}{{order}}(PyObject *op1, PyObject *op2, CYTHO
...
@@ -702,12 +702,12 @@ static PyObject* __Pyx_PyInt_{{op}}{{order}}(PyObject *op1, PyObject *op2, CYTHO
x
=
a
{{
c_op
}}
b
;
x
=
a
{{
c_op
}}
b
;
{{
if
op
==
'
Lshift
'
}}
{{
if
op
==
'
Lshift
'
}}
#ifdef HAVE_LONG_LONG
#ifdef HAVE_LONG_LONG
if
(
unlikely
(
!
(
b
<
sizeof
(
long
)
*
8
&&
a
==
x
>>
b
))
&&
a
)
{
if
(
unlikely
(
!
(
b
<
(
long
)
(
sizeof
(
long
)
*
8
)
&&
a
==
x
>>
b
))
&&
a
)
{
ll
{{
ival
}}
=
{{
ival
}};
ll
{{
ival
}}
=
{{
ival
}};
goto
long_long
;
goto
long_long
;
}
}
#else
#else
if
(
likely
(
b
<
sizeof
(
long
)
*
8
&&
a
==
x
>>
b
)
||
!
a
)
/* execute return statement below */
if
(
likely
(
b
<
(
long
)
(
sizeof
(
long
)
*
8
)
&&
a
==
x
>>
b
)
||
!
a
)
/* execute return statement below */
#endif
#endif
{{
endif
}}
{{
endif
}}
{{
endif
}}
{{
endif
}}
...
...
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