[issue4575] Py_IS_INFINITY defect causes test_cmath failure on x86
Mark Dickinson
report at bugs.python.org
Sun Dec 14 23:03:12 CET 2008
Mark Dickinson <dickinsm at gmail.com> added the comment:
> The macro Py_IS_INFINITY don't work on linux. The test case(force-inf.c)
> is attached. The result don't depend from optimisation flag.
Thanks, Roumen. I rather suspected that Py_IS_INFINITY was dodgy this
way.
On the other hand, this is only a problem when Py_IS_INFINITY is applied
to a *computed* result; most of the time Py_IS_INFINITY is being directly
applied to the incoming argument to some function, so should be safe.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4575>
_______________________________________
More information about the Python-bugs-list
mailing list