Commit c82f49ea authored by Stefan Behnel's avatar Stefan Behnel

Fix abs(long long) test in 32bit MSVC: need to calculate max value in Python...

Fix abs(long long) test in 32bit MSVC: need to calculate max value in Python as Cython assumes result to be Py_ssize_t (due to sizeof()), which is < sizeof(long long).
parent 51c36af6
...@@ -7,7 +7,7 @@ cdef extern from *: ...@@ -7,7 +7,7 @@ cdef extern from *:
max_int = INT_MAX max_int = INT_MAX
max_long = LONG_MAX max_long = LONG_MAX
max_long_long = 2 ** (sizeof(long long) * 8 - 1) - 1 max_long_long = (<object>2) ** (sizeof(long long) * 8 - 1) - 1
cimport cython cimport cython
......
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