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
2816008b
Commit
2816008b
authored
Nov 15, 2016
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix long -> int conversion warnings.
parent
4de0b375
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/run/r_forloop.pyx
tests/run/r_forloop.pyx
+3
-3
No files found.
tests/run/r_forloop.pyx
View file @
2816008b
...
@@ -71,7 +71,7 @@ def go_c_all_exprs(x):
...
@@ -71,7 +71,7 @@ def go_c_all_exprs(x):
Spam!
Spam!
Spam!
Spam!
"""
"""
cdef
int
i
cdef
long
i
for
i
in
range
(
4
*
x
,
2
*
x
,
-
3
):
for
i
in
range
(
4
*
x
,
2
*
x
,
-
3
):
print
u"Spam!"
print
u"Spam!"
...
@@ -94,7 +94,7 @@ def go_c_calc(x):
...
@@ -94,7 +94,7 @@ def go_c_calc(x):
Spam!
Spam!
Spam!
Spam!
"""
"""
cdef
int
i
cdef
long
i
for
i
in
range
(
2
*
f
(
x
),
f
(
x
),
-
2
):
for
i
in
range
(
2
*
f
(
x
),
f
(
x
),
-
2
):
print
u"Spam!"
print
u"Spam!"
...
@@ -103,7 +103,7 @@ def go_c_calc_ret(x):
...
@@ -103,7 +103,7 @@ def go_c_calc_ret(x):
>>> go_c_calc_ret(2)
>>> go_c_calc_ret(2)
6
6
"""
"""
cdef
int
i
cdef
long
i
for
i
in
range
(
2
*
f
(
x
),
f
(
x
),
-
2
):
for
i
in
range
(
2
*
f
(
x
),
f
(
x
),
-
2
):
if
i
<
2
*
f
(
x
):
if
i
<
2
*
f
(
x
):
return
i
return
i
...
...
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