From 2f4425f3cf295a37212c59fa8c5fda26e77a05ac Mon Sep 17 00:00:00 2001 From: Christoph Gohlke Date: Sun, 27 Jan 2013 10:07:01 -0800 Subject: [PATCH] Fix overflow_check CompileError with msvc --- tests/run/overflow_check.pxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.7.4