From: Christoph Gohlke Date: Sun, 27 Jan 2013 18:07:01 +0000 (-0800) Subject: Fix overflow_check CompileError with msvc X-Git-Tag: 0.18~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7304280838600d38bb2825941f66c7c3a92014c8;p=platform%2Fupstream%2Fpython-cython.git Fix overflow_check CompileError with msvc --HG-- extra : transplant_source : %3FH%B6t%1FFL%D8%2BF%7CV%7D%10T9%EA%CB%A0%00 --- diff --git a/tests/run/overflow_check.pxi b/tests/run/overflow_check.pxi index 3603f95..eea9f06 100644 --- a/tests/run/overflow_check.pxi +++ b/tests/run/overflow_check.pxi @@ -34,7 +34,7 @@ cpdef check(func, op, a, b): if not func_overflow: assert res == op_res, "Inconsistant values: %s(%s, %s) == %s != %s" % (func, a, b, res, op_res) -medium_values = (max_value_ / 2, max_value_ / 3, min_value_ / 2, sqrt(max_value_) - 1, sqrt(max_value_) + 1) +medium_values = (max_value_ / 2, max_value_ / 3, min_value_ / 2, sqrt(max_value_) - 1, sqrt(max_value_) + 1) def run_test(func, op): cdef INT offset, b check(func, op, 300, 200)