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
556c7e15
Commit
556c7e15
authored
May 28, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avoid potential 32bit issues in test
parent
2059fa83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
tests/run/inlined_generator_expressions.pyx
tests/run/inlined_generator_expressions.pyx
+6
-6
No files found.
tests/run/inlined_generator_expressions.pyx
View file @
556c7e15
...
@@ -140,10 +140,10 @@ def return_typed_sum_squares_start(seq, int start):
...
@@ -140,10 +140,10 @@ def return_typed_sum_squares_start(seq, int start):
>>> return_typed_sum_squares_start(range(10), -1)
>>> return_typed_sum_squares_start(range(10), -1)
284
284
>>> sum([i*i for i in range(1000
0
)], 9)
>>> sum([i*i for i in range(1000)], 9)
33
32833350
09
33
28335
09
>>> return_typed_sum_squares_start(range(1000
0
), 9)
>>> return_typed_sum_squares_start(range(1000), 9)
33
32833350
09
33
28335
09
"""
"""
cdef
long
i
cdef
int
i
return
<
long
>
sum
((
i
*
i
for
i
in
seq
),
start
)
return
<
int
>
sum
((
i
*
i
for
i
in
seq
),
start
)
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