Commit bddba057 authored by Christian Heimes's avatar Christian Heimes

setup.py doesn't pick up changes to a header file

parent 343d3cd8
...@@ -240,11 +240,11 @@ loghelper(PyObject* arg, double (*func)(double), char *funcname) ...@@ -240,11 +240,11 @@ loghelper(PyObject* arg, double (*func)(double), char *funcname)
"math domain error"); "math domain error");
return NULL; return NULL;
} }
/* Value is ~= x * 2**(e*SHIFT), so the log ~= /* Value is ~= x * 2**(e*PyLong_SHIFT), so the log ~=
log(x) + log(2) * e * SHIFT. log(x) + log(2) * e * PyLong_SHIFT.
CAUTION: e*SHIFT may overflow using int arithmetic, CAUTION: e*PyLong_SHIFT may overflow using int arithmetic,
so force use of double. */ so force use of double. */
x = func(x) + (e * (double)SHIFT) * func(2.0); x = func(x) + (e * (double)PyLong_SHIFT) * func(2.0);
return PyFloat_FromDouble(x); return PyFloat_FromDouble(x);
} }
......
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