Commit 02c762b4 authored by Stefan Behnel's avatar Stefan Behnel

Fix test usage of overloaded C++ function in MSVC++.

parent 6ea2fcb6
...@@ -82,7 +82,7 @@ def test_global(): ...@@ -82,7 +82,7 @@ def test_global():
cdef long long rad(long long x): cdef long long rad(long long x):
cdef long long rad = 1 cdef long long rad = 1
for p in range(2, <long long>sqrt(x) + 1): for p in range(2, <long long>sqrt(<double>x) + 1): # MSVC++ fails without the input cast
if x % p == 0: if x % p == 0:
rad *= p rad *= p
while x % p == 0: while x % p == 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment