From: Stefan Behnel Date: Fri, 28 May 2010 09:22:42 +0000 (+0200) Subject: avoid potential 32bit issues in test X-Git-Tag: 0.13.beta0~2^2~29 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=556c7e15a6e804436534aec00335fa36a79ec9ff;p=cython.git avoid potential 32bit issues in test --- diff --git a/tests/run/inlined_generator_expressions.pyx b/tests/run/inlined_generator_expressions.pyx index b2843f75..4685c3e2 100644 --- a/tests/run/inlined_generator_expressions.pyx +++ b/tests/run/inlined_generator_expressions.pyx @@ -140,10 +140,10 @@ def return_typed_sum_squares_start(seq, int start): >>> return_typed_sum_squares_start(range(10), -1) 284 - >>> sum([i*i for i in range(10000)], 9) - 333283335009 - >>> return_typed_sum_squares_start(range(10000), 9) - 333283335009 + >>> sum([i*i for i in range(1000)], 9) + 332833509 + >>> return_typed_sum_squares_start(range(1000), 9) + 332833509 """ - cdef long i - return sum((i*i for i in seq), start) + cdef int i + return sum((i*i for i in seq), start)