[issue1635] Float patch for inf and nan on Windows (and other platforms)
Christian Heimes
report at bugs.python.org
Mon Dec 17 20:53:44 CET 2007
Christian Heimes added the comment:
Adam Olsen wrote:
> You have:
> #define Py_NAN Py_HUGE_VAL * 0
> I think this would be safer as:
> #define Py_NAN (Py_HUGE_VAL * 0)
>
> For instance, in code that may do "a / Py_NAN".
You are right! Fixed
> Those manual string copies (*cp++ = 'n';) are ugly. Can't you use
> strcpy() instead?
Done
Christian
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1635>
__________________________________
More information about the Python-bugs-list
mailing list